360 Secure SkillHub
360 安全技能中心

roblox-animation-vfx

该 Skill 是一份面向 Roblox 动画与视觉特效的参考清单,覆盖 Animator 复制、动画优先级与图状态机,以及粒子、拖尾、Highlight 的常见故障、限制和清理要点,并给出在 Studio 中检查动作的建议。

分类:开发
TabooHarmony
热度 37.96
最近更新 2026-12-01 11:24:33

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add tabooharmony/roblox-brain/roblox-animation-vfx
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
roblox-animation-vfx
description
Use when building, fixing or reviewing Roblox animation playback and effects: Animator, priority, graphs, particles, trails, Highlight.
when_to_use
Also when an animation won't play, replicate or blend, NPCs animate choppy, an effect is invisible, too weak, laggy or never cleans up, particles thin out on phones, a trail streaks after teleport, Highlights stop showing, or fading a character leaves face parts visible.
last_reviewed
"2026-11-29T00:00:00.000Z"
sources
["original","https://create.roblox.com/docs/reference/engine/classes/Animator","https://create.roblox.com/docs/reference/engine/classes/Animation","https://create.roblox.com/docs/reference/engine/classes/AnimationTrack","https://create.roblox.com/docs/animation/editor","https://create.roblox.com/docs/projects/assets/privacy","https://create.roblox.com/docs/animation/graph-editor-state-machine","https://create.roblox.com/docs/animation/expressions","https://create.roblox.com/docs/projects/server-authority/techniques","https://create.roblox.com/docs/effects/particle-emitters","https://create.roblox.com/docs/reference/engine/classes/ParticleEmitter","https://create.roblox.com/docs/reference/engine/classes/Trail","https://create.roblox.com/docs/effects/highlighting","https://create.roblox.com/docs/reference/engine/classes/Highlight"]

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 Animator lives. Under a player character's Humanoid/AnimationController, the owning client loads and plays and it replicates; any other Animator (NPC, prop) must load and play on the server. The Animator must be created on the server: tracks from a client-created Animator never replicate. LoadAnimation errors if the Animator isn't in Workspace yet.
  • 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 -> LoadAnimation always creates a new track, and every loader shares one Animator's cap: the default Animate script, tools, emotes and ragdoll get-up code that reloads each recovery (field case). Load once per Animator, look tracks up with Animator:GetTrackByAnimationId(), Destroy what you stop for good.
  • Two animations look half-strength, or an attack doesn't fully override -> per joint the highest Priority wins; equal priorities blend by the weighted average of WeightCurrent (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 to WeightTarget over the fade: check WeightCurrent within an epsilon, not equality.
  • Distant characters animate choppy -> animation LOD throttles remotely simulated characters by distance, screen coverage and frame budget. Set Animator.PreferLodEnabled = false only on key NPCs (it costs); Workspace.ClientAnimatorThrottlingMode switches it for all. Procedural offsets skip frames where Animator.EvaluationThrottled is 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 Humanoid moves nothing -> it was under an AnimationController; put it under the Humanoid (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 accept AnimationConstraint and Motor6D (field case; joint math in roblox-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 in RunService:BindToSimulation() (needs Workspace.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 Priority pick at random; give competing transitions distinct priorities (§1).

Effects

  • Stream thins out on phones -> one ParticleEmitter makes at most 400 particles/s, 100/s on mobile. A denser look needs more emitters, larger or longer-lived particles, not a higher Rate.
  • Smoke or aura cut off -> Lifetime is 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 = false lets 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. FlipbookStartRandom with FlipbookFramerate 0 gives a random static frame per particle, not an animation.
  • Brightness does nothing -> it scales emitted light only when LightInfluence = 0. Small additive accents (under ~2 studs) read only with Brightness about 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 Highlight still 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. Adornee set 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 is WorldPivot, which freezes once PivotTo/MoveTo sets it (an equip does) and then ignores parts moving by welds or physics (Studio-verified 2026-11-29). Parent emitters to an Attachment on 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 Attachment in Workspace.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 Completed fires with PlaybackState.Cancelled. TweenInfo.DelayTime is 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 clamp dt (0.1 s).
  • Scripted surface animation doesn't change -> scripts can't set SurfaceAppearance maps (ColorMap is plugin-only); per-frame TextureID swaps are content loads. Scroll a Texture (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 AnimationGraphDefinition loads like any Animation (LoadAnimation, Play()); drive it with track:SetParameter(name, value). Keep gameplay decisions (can attack?) in code and pass only results (Grounded, Speed) as parameters.
  • OneShotNode combines its pose with the base by Enum.AnimationNodeBlendMode: Over replaces by weight, Add layers, Subtract removes.
  • Transition WaitFor = Finished with When = BeforeFinished starts blending one Duration before the source ends. Only the active state's events pass through.
  • Expressions are Luau-like but limited: no math.frexp, math.noise or math.randomseed; math.modf returns only the integer part; an if body may hold only a return or 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.