Skip to content

Guides

Animate a rig

Idle loops, emotes, door and machine animations, and playing them at the right moment.

The agent can animate rigs and objects and wire the animations into your game: an NPC's idle, an emote on a key press, a drawbridge that lowers when a button is pressed.

The request#

The shopkeeper NPC in Workspace.Shop should play a gentle idle loop
(breathing, looking around now and then) and wave when a player comes
within 10 studs.

What the agent does#

  • Reads the rig to see whether it is R15 or R6 and what it has: Humanoid or AnimationController, an Animator, existing animations.
  • Uses animations already in your place or available to you where they fit, and builds simple keyframed motion where it does not need a full animation, such as a door swinging or a platform moving, with tweens.
  • Writes the script that plays the idle on a loop and the wave on proximity, with a cooldown so it does not wave every frame.

Check it#

Press Play and walk up to the NPC. Check the animation priorities: the wave should play over the idle and return to it cleanly.

Refine it#

  • "Make the wave happen only once per player."
  • "Slow the idle down."
  • "Have him turn to face the player while waving."

Tips#

  • Name the rig and say what type it is if you know.
  • Animation assets you upload are owned by your account; the agent uses what is available to your place and does not upload anything for you.
  • For complex character animation, the agent sets up and wires the animations; hand-keyed performance is still best done in the Animation Editor.