Roblox Animation and VFX
When to Load
Animator playback, Animation Graphs, particles, beams, trails, Highlight and effect cleanup. Joints, AnimationConstraint, IK and ragdolls: roblox-physics (§1); effect budgets and quality tiers: roblox-performance; lighting and post effects: roblox-building.
"Field case" = seen in one of the owner's projects; verify on your content.
Traps and review checklist (symptom -> cause -> fix)
Animation
- Plays locally, nobody else sees it -> replication depends on where the
Animatorlives. Under a player character'sHumanoid/AnimationController, the owning client loads and plays and it replicates; any other Animator (NPC, prop) must load and play on the server. TheAnimatormust be created on the server: tracks from a client-created Animator never replicate.LoadAnimationerrors if the Animator isn't inWorkspaceyet. - Animation silently doesn't play -> the game has no permission to the asset. Animations used in a group game must be published with the group as Creator, or the game granted use on the animation's Permissions page (Creator Dashboard > Development Items > Animations); Studio's Output shows a clickable permission error.
AnimationTrack limit of 64 exceeded, or an old track still bends the pose ->LoadAnimationalways creates a new track, and every loader shares one Animator's cap: the defaultAnimatescript, tools, emotes and ragdoll get-up code that reloads each recovery (field case). Load once per Animator, look tracks up withAnimator:GetTrackByAnimationId(),Destroywhat you stop for good.- Two animations look half-strength, or an attack doesn't fully override -> per joint the highest
Prioritywins; equal priorities blend by the weighted average ofWeightCurrent(default weight 1 each, so 50/50). Order:Core < Idle < Movement < Action < Action2 < Action3 < Action4; never compare the enum's numeric values (Core= 1000,Idle= 0). Weight moves toWeightTargetover the fade: checkWeightCurrentwithin an epsilon, not equality. - Distant characters animate choppy -> animation LOD throttles remotely simulated characters by distance, screen coverage and frame budget. Set
Animator.PreferLodEnabled = falseonly on key NPCs (it costs);Workspace.ClientAnimatorThrottlingModeswitches it for all. Procedural offsets skip frames whereAnimator.EvaluationThrottledis true. - Scripted dynamic-head expression never shows -> default idle and walk animations write face controls every frame. Strip their face channels or apply the expression after the Animator each frame; check in Play, not Edit (field case).
- Animator in a model with a
Humanoidmoves nothing -> it was under anAnimationController; put it under theHumanoid(field case). - Procedural pose never applies after spawn -> joints looked up once in
CharacterAdded, before the parts streamed in. Look them up lazily each frame and acceptAnimationConstraintandMotor6D(field case; joint math inroblox-physics§1). - Server Authority: track handle stale after rollback -> store the animation id, query
GetTrackByAnimationId()/GetPlayingAnimationTracks()when applying changes, don't cache tracks. Run synchronized animation logic inRunService:BindToSimulation()(needsWorkspace.UseFixedSimulation). Key predicted effects by their event (entityId .. ":" .. shotIndex), play once per key, cancel on rollback. - Graph state machine flickers between states -> several transitions true at the same
Prioritypick at random; give competing transitions distinct priorities (§1).
Effects
- Stream thins out on phones -> one
ParticleEmittermakes at most 400 particles/s, 100/s on mobile. A denser look needs more emitters, larger or longer-lived particles, not a higherRate. - Smoke or aura cut off ->
Lifetimeis capped at 20 s; and destroying an emitter (or its parent) kills its live particles at once. Disable it, wait the longest lifetime, then destroy. Trails:Enabled = falselets segments fade,Trail:Clear()removes them now. - Flipbook stops animating on older phones -> clients drop flipbooks under memory pressure. Fewer unique flipbooks, smaller textures, reuse one texture.
FlipbookStartRandomwithFlipbookFramerate0 gives a random static frame per particle, not an animation. Brightnessdoes nothing -> it scales emitted light only whenLightInfluence = 0. Small additive accents (under ~2 studs) read only withBrightnessabout 4 (field case).- Pooled trail streaks across the map -> it records the teleport. Set the new CFrame, then call
Trail:Clear()(128 pooled pieces: no measurable cost, field case). - Some Highlights never show -> 255 simultaneous per client, extras silently ignored, and a disabled
Highlightstill holds a slot: delete ones you won't reuse. Adding/removing triggers a geometry rebuild (spikes): change properties to hide or restyle instead. Don't nest highlighted objects inside each other.Adorneeset to a Folder drew nothing, no error (field case): use a Model or BasePart. - Effect fine in Studio, invisible live ->
rbxasset://textures/vfxpreview/...paths exist only in the local Studio install and are wiped by updates: upload every texture. One broken id made every instance of an effect invisible (field case). - Particles left behind as a welded model moves -> with no
PrimaryPart, a Model's pivot isWorldPivot, which freezes oncePivotTo/MoveTosets it (an equip does) and then ignores parts moving by welds or physics (Studio-verified 2026-11-29). Parent emitters to anAttachmenton a welded part. - Effect missing or doubled on a streamed model -> its arrival doesn't mean its parts or effect metadata arrived. Apply presentation idempotently when the parts exist, cancel on removal. One-off world bursts can live on an
AttachmentinWorkspace.Terrain(no host part to stream out). - Tween sequence skips a phase or destroys a reused part -> a new tween on the same property cancels the running one, and
Completedfires withPlaybackState.Cancelled.TweenInfo.DelayTimeis not a queue: start the next phase on real completion and check state before destroying shared targets. - Spring effect explodes at low FPS -> semi-implicit Euler at 5 Hz, damping 0.75 grew 67x in one second at
dt = 1/30(field-measured; unfocused Studio and slow phones run that slow). Integrate in fixed substeps (1/240 s) and clampdt(0.1 s). - Scripted surface animation doesn't change -> scripts can't set
SurfaceAppearancemaps (ColorMapis plugin-only); per-frameTextureIDswaps are content loads. Scroll aTexture(OffsetStudsU/OffsetStudsV) and write properties only on change.
Limits
| Item | Value |
|---|---|
Particle Rate per emitter |
400/s; 100/s on mobile |
| Flipbook layouts | 2x2, 4x4, 8x8 or Custom (FlipbookSizeX/Y) |
Highlight |
255 shown per client, disabled ones count; the first on screen costs up to 1 ms GPU on mobile, more with screen coverage there; off-screen or transparent ones cost nothing |
| Graph transition | Priority 0-65,535 (ties random); default Duration 0.15 s; Curve Linear or CubicV2 |
| Animated props (field) | 12 props, 178 overlays: ~0.3 ms Luau/frame on screen, 0.014 ms off; cull small animated surfaces past ~90 studs |
1. Animation Graphs (2026-11)
- A published
AnimationGraphDefinitionloads like anyAnimation(LoadAnimation,Play()); drive it withtrack:SetParameter(name, value). Keep gameplay decisions (can attack?) in code and pass only results (Grounded,Speed) as parameters. OneShotNodecombines its pose with the base byEnum.AnimationNodeBlendMode:Overreplaces by weight,Addlayers,Subtractremoves.- Transition
WaitFor = FinishedwithWhen = BeforeFinishedstarts blending oneDurationbefore the source ends. Only the active state's events pass through. - Expressions are Luau-like but limited: no
math.frexp,math.noiseormath.randomseed;math.modfreturns only the integer part; anifbody may hold only areturnor one expression.
2. Checking motion in Studio
Built-in Studio MCP (roblox-studio-mcp): generate_animation (R15, up to 10 s, or R6 -> R15), screen_capture for stills, video_capture (Client) for motion, stutter and timing. Screenshot latency (~1 s) misses short flashes: set TimeScale = 0 to freeze particles (trails keep fading, so loop their source), and check under the game's real lighting in a live player view, since heavy atmosphere washes out effects that look fine in clear air.
