Blog

Guide

How to animate an NPC in Roblox Studio (2026 guide)

How to animate an NPC in Roblox Studio in 2026: rig it, make clips in the Animation Editor or the new Prompt to Animation beta, and play them by script.

Published 7 min readby the Synagy team, written with AI

Short answer: to animate an NPC in Roblox Studio, you need a rig, an animation published to Roblox and a server Script that plays it through the rig's Animator. Make the clip by hand in the Animation Editor, which runs at 30 frames per second. Or type a prompt into the Prompt to Animation beta from November 5, 2026. It makes clips of up to 10 seconds, but only for humanoid rigs.

This guide covers both ways, the script that plays the clips on an enemy or a pet, and the most common reasons an NPC animation fails without a clear error. Everything below was checked against Roblox's own docs on November 23, 2026.

What do you need before you animate an NPC?

You need a rig with named joints and a controller that holds an Animator. The rig you pick decides which tools work for it.

RigPartsControllerAnimation EditorPrompt to Animation
R15 humanoid15 mesh partsHumanoidYesYes
R6 humanoid6 mesh partsHumanoidYesNo, but Motion Rebuilder turns R6 clips into R15
Creature (wolf, dragon, pet)Your own parts, joined with Motor6DAnimationControllerYesNot directly

The part counts come from Roblox's Rig Generator docs. To insert a humanoid rig, click Character on the Avatar or Home tab and pick R15 or R6.

For a creature, build the model from parts, join them with Motor6D joints and add an AnimationController with an Animator inside. The Animation Editor docs add one trap: the part that should stay still must be the AssemblyRootPart. Setting the PrimaryPart is not enough.

How do you animate an NPC in the Animation Editor, step by step?

You pose the rig on a timeline, publish the clip and copy its asset ID. Most enemies need four clips: idle, walk, attack and death.

  1. Insert a rigAvatar tab, Character, then R15 or R6
  2. Open the editorAvatar tab, Animation Editor, click the rig
  3. Pose keyframesmove the scrubber, rotate a part, a keyframe appears
  4. Loop and priorityloop idle and walk, give attacks a higher priority
  5. Publishthe ⋯ menu, Publish to Roblox, pick the group if it owns the game
  6. Copy the IDfind the clip in the Toolbox and copy its asset ID
Animate an NPC in six steps
  1. Select the rig and open the Animation Editor from the Avatar tab. Give the new animation a name.
  2. Move the scrubber, then move or rotate a part. Each change adds a keyframe. The editor works at 30 frames per second.
  3. Click the Looping button for idle and walk. Leave attack and death unlooped.
  4. Pick a priority. Roblox lists seven levels, from highest to lowest: Action4, Action3, Action2, Action, Movement, Idle and Core. A higher priority overrides a lower one that is already playing.
  5. Save with ⋯ > Save. This stores a KeyframeSequence in ServerStorage. It is only a local draft.
  6. Publish with ⋯ > Publish to Roblox. If a group owns the game, choose that group in the Creator field.

How do you make an NPC animation from a prompt?

Turn on the beta, type /generate_animation in Assistant and describe the move. Roblox posted the Prompt to Animation announcement on November 5, 2026.

10 slongest clip per action
20–30 sto generate one action
4generations per minute per account
$0cost while the beta runs
  1. Open File > Beta Features and turn on Animation Generation in Assistant.
  2. Select your R15 NPC, open Assistant and type /generate_animation.
  3. Choose New Animation and describe the move, for example "zombie walk, slow, arms forward".
  4. Fix poses in Assistant, or open the clip in the Clip Editor to trim it.
  5. Click Save to Roblox. That uploads the clip as an animation asset with its own ID.

Upscale Animation, also called Motion Rebuilder, takes an old R6 clip and makes a new R15 version. Roblox says this usually takes under 10 seconds, and the R6 original stays unchanged. Agents can call the same tool through Studio MCP. Our guide on making a Roblox game with Claude shows that setup. For the rest of Assistant, read how to use Roblox Studio AI Assistant.

Roblox lists these limits in the announcement:

How do you play the animation on the NPC with a script?

Put a Script, not a LocalScript, inside the NPC. Load the clip through the Animator once, then play and stop the track. Roblox's own example for a non-humanoid rig is a server Script inside the rig.

```lua -- Script inside the NPC model local npc = script.Parent local humanoid = npc:WaitForChild("Humanoid") local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator") animator.Parent = humanoid

local walk = Instance.new("Animation") walk.AnimationId = "rbxassetid://0000000000" -- your asset ID

local walkTrack = animator:LoadAnimation(walk) walkTrack.Priority = Enum.AnimationPriority.Movement walkTrack.Looped = true

humanoid.Running:Connect(function(speed) if speed > 0.5 and not walkTrack.IsPlaying then walkTrack:Play() elseif speed <= 0.5 and walkTrack.IsPlaying then walkTrack:Stop() end end) ```

Three rules keep this clean:

The AnimationTrack reference shows that Priority and Looped can both be set in code, as above.

Why does an NPC animation not play?

Most failures come from ownership, a draft clip or a priority clash. Check the Output window first.

What you seeLikely causeFix
"Failed to load animation with sanitized ID"The clip belongs to another account or group than the gamePublish it again under the game's owner
Works in the editor, not in PlayYou used the local draft, not a published IDPublish and use the rbxassetid
Only some limbs moveAnother track with the same or higher priority playsRaise the priority or stop the other track
A creature does not move at allJoints renamed, or no Animator in the controllerKeep joint names and add an Animator
An R15 clip twists an R6 NPCThe rig types don't matchAnimate on the same rig type you play on
Other players don't see itIt started in a LocalScriptPlay NPC clips from a server Script

Where does an AI mob tool fit, and where does it stop?

If you need many enemies and don't want to rig each one by hand, a mob generator can take over the first steps. Synagy is one such tool, but it is being rebuilt and is not open yet. The plan for the relaunch: you describe a boss, a ranged enemy or a pet. You get a Roblox .rbxm model with a rig, four animations (idle, walk, attack, death) and enemy AI in Luau, checked in a live 3D preview first.

Where it stops: combat behaviour comes from presets, not free scripts, and one mob is made for one game. Cutscenes, emotes and one-off moves still belong in the Animation Editor. If the idea fits your game, the waitlist on synagy.org gives you a permanent Founder number and your own hatched mob.

FAQ

How do you make an NPC walk with an animation in Roblox Studio?

Publish a looped walk clip and load it on the NPC's Animator from a server Script. Move the NPC with Humanoid:MoveTo. The Running event reports the speed, so you start the walk track when the NPC moves and stop it when it stands still.

Can AI animate a Roblox NPC?

Yes, for humanoid NPCs. Roblox's Prompt to Animation beta turns a text prompt into an R15 clip of up to 10 seconds, and it is free while the beta runs. It does not support creature rigs yet, so four-legged pets and monsters still need the Animation Editor.

Does the animation have to be owned by the game owner?

In practice, yes. Publish the animation under the same user or group that owns the experience. If the owners differ, Roblox often refuses to load the clip and prints a "sanitized ID" error in the Output window.

Should NPC animations run in a Script or a LocalScript?

Use a server Script for NPCs, so the animation shows for every player. LocalScripts are meant for the local player's own character, whose animations Roblox passes on from that player's device.

Can you animate a non-humanoid NPC like a dog or a dragon?

Yes. Build it from parts joined by Motor6D joints, add an AnimationController with an Animator, and animate it in the Animation Editor. Keep the joint names stable, because the Animator matches each clip to the joints by name.

Written with AI and checked automatically before publishing, without a human editor. Spotted a mistake? Tell us and we fix it.

Something new is hatching. Synagy is being rebuilt from the ground up. Join the waitlist or read more on the blog.