agentleFS
blushneybusiness-glitchblushneybusiness-glitch/roblox-omniskills/skills/rbx-anim-npc/SKILL.md

rbx-anim-npc

Skill0 starsChanged 3 months agoMITView on GitHub

Complete NPC animation sets — idle, walk, attack, emote — assembled from catalog animations and custom tracks so every NPC reads alive from spawn to despawn instead of gliding around in a T-pose. Use when the user says "animate the NPC", "give the shopkeeper an idle", "add attack animations", "make it emote", or when NPCs slide without walking, stand frozen, or every NPC in a scene moves in identical lockstep. Do not use for single-track Animator mechanics or uploads — load rbx-anim-rigs — or for the behavior logic deciding WHEN to attack — load rbx-npc-statemachines instead.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read: asset-library.md for proven animation-set ids tagged by rig type and game style.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

rbx-anim-npc

Laws

  1. Four states minimum. An NPC ships with idle, walk, attack (or interact), and one flavor emote — anything less reads as a mannequin. Shop NPCs swap attack for a greet/wave; ambient NPCs swap it for a second idle variant.
  2. Play on the server Animator. Server-owned NPCs load and play tracks on the server so playback replicates to every client for free. Client-side NPC animation is only for purely-local actors (lobby dioramas, cutscene stand-ins).
  3. Priority does the switching. Idle at Idle, walk at Movement, attacks and emotes at Action — start the looped idle once at spawn and let priority bury it instead of stopping/starting tracks per state change.
  4. Telegraphs are animation, damage is server math. The attack animation's windup IS the dodge window (rbx-npc-combat owns the timing doctrine); the damage lands from server-side hit logic at the marker time — never from any client's report of what it saw.
  5. Desynchronize the crowd. Identical NPCs start idles at random offsets (track.TimePosition = math.random() * track.Length) and ±10% AdjustSpeed jitter. A row of guards breathing in unison is a top-three scene tell.

Passes

  1. Rig intake — R15/R6 catalog rig or custom creature decided; inserted rigs and animation packs pass the modelscan gate (Sourcing) before their scripts run; inspect_instance confirms Motor6Ds + Animator.
  2. Set assembly — pick the four-plus tracks: Roblox catalog animation ids for humanoid staples (verified this session, never from memory), custom tracks via rbx-anim-rigs where the catalog has nothing (creature attacks, bespoke emotes → 0 -- TODO + rbx-handoff-uploads).
  3. Load & ladder — preload all tracks at NPC spawn on the server Animator, priorities per law 3, walk track speed slaved to Humanoid.WalkSpeed / authored speed so feet never skate.
  4. Hook the state machine — rbx-npc-statemachines states call one AnimSet:play(name) API; the set module owns fades (0.2s in / 0.3s out) so states never touch tracks directly.
  5. Markers & sound — footsteps, swing whooshes, and impact stings from GetMarkerReachedSignal with ±10% PlaybackSpeed variation per fire; silence on a moving NPC is an AI-tell.
  6. Verify — start_stop_play, walk the test character past the NPCs via character_navigation, watch for skating feet, T-poses, and lockstep idles; read get_console_output for failed loads.

Sourcing

Tiers per asset-id-policy.md: asset-library.md first (pcall re-verified), then Roblox catalog animations for humanoid rigs verified in-session, then search_asset → insert_asset for Creator Store rigs and packs. Every Creator Store insert passes rbx-security-modelscan before any script runs. Custom tracks that need publishing queue through rbx-handoff-uploads while the set ships with 0 -- TODO ids.

Performance budget

One server Animator per NPC, tracks preloaded at spawn, destroyed at despawn. Past ~15 simultaneous animated NPCs, stagger non-visible updates and drop emote variety per rbx-npc-crowds — animation replication is cheap, but the AI driving it is not. Never run per-NPC RenderStepped work on clients for idles the Animator already handles.

Load with

rbx-npc-statemachines — the states this set animates; don't ask, include it on any NPC with behavior. rbx-anim-rigs for track mechanics and uploads, rbx-security-modelscan on every insert, rbx-audio-sfx for footsteps and swing sounds. Combat NPCs add rbx-npc-combat for telegraph timing doctrine.

AI-tells

  • ☐ NPC slides across the ground with no walk track, or feet skate against WalkSpeed
  • ☐ T-pose on spawn — set assembled but never preloaded or rig chain broken
  • ☐ Identical NPCs idling in perfect lockstep, zero offset or speed jitter
  • ☐ States stopping/starting every track manually instead of the priority ladder
  • ☐ Attack damage applied from the animation's client-visible frame, unvalidated
  • ☐ Animation ids recalled from memory instead of verified this session
  • ☐ Fully silent NPCs — no footsteps, no vocal/effort sounds at markers

Memory

Read: asset-library.md for proven animation-set ids tagged by rig type and game style; the game's projects.md block for NPC folder conventions and existing AnimSet modules. Write: every verified id that ships into asset-library.md (tagged idle/walk/attack/emote + rig); the AnimSet module into module-library.md; pending custom-track uploads into the game's projects.md manual steps pending: list.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.