This skill helps an agent handle Roblox player characters in Luau. A Player is the durable identity and each Character is a replaceable session, so the skill keeps connections, animation tracks and temporary instances in a scope that is cleaned up on every respawn.
It includes a character-binding pattern with generation checks for stale async work, an Animator pattern with marker signals, and rules for rigs, movement ownership, the Input Action System and Tools. A table of symptoms, causes and remedies covers scripts that break after reset and handlers that fire twice.
What You Get
- A seven-step workflow from reading the character contract to binding, defensive part lookup, movement ownership, animation lifecycle and a respawn check
- A Luau pattern for a replaceable character scope with connection cleanup and generation checks after every yield
- An Animator pattern that loads tracks, listens to marker signals and cleans up on teardown
- Rules for rigs, movement, input actions, tools and Server Authority, plus a symptom, cause and remedy table
Common Use Cases
- Fixing a script that works once and breaks after the player resets
- Finding why animations do not play or replicate
- Stopping sprint or dash code from fighting the Humanoid
- Supporting both R6 and R15 rigs
What Makes It Unique
The skill frames most character bugs as one character’s state leaking into the next and answers with scopes and generation counters. It tells the agent to extend the project’s existing controller and never add a second one, and to treat animation markers as timing only, with the server validating any hit.
Under The Hood
The agent loads the SKILL.md and, when needed, a reference on server binding, death versus removal and a respawn stress matrix. It reads the project’s character settings and scripts and edits Luau files. For its lifecycle check it can use a connected Roblox Studio MCP server to start play, run Luau on the server that respawns the player several times, and read the console output; without that server it asks you to reset in Studio and report what you see. Its own sources are Roblox documentation pages, which it names for re-checking APIs; the skill does not fetch them during normal use.