roblox-npc-ai
Skill by EL4CTEO
Guides an AI assistant through building Roblox NPCs and enemy AI with PathfindingService, state machines, line of sight and scaling. Written for Roblox developers making enemies, pets, followers, shopkeepers or wave spawners.
Install roblox-npc-ai
Built from the published package, never by AI.
git clone --depth 1 https://github.com/EL4CTEO/roblox-skills /tmp/roblox-skills && mkdir -p ~/.claude/skills && cp -r /tmp/roblox-skills/skills/roblox-npc-ai ~/.claude/skills/roblox-npc-aiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/EL4CTEO/roblox-skills /tmp/roblox-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/roblox-skills/skills/roblox-npc-ai ~/.gemini/antigravity-cli/skills/roblox-npc-aiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The roblox-npc-ai skill gives an AI assistant guidance for building NPCs and enemy AI in Roblox. It covers PathfindingService usage, including CreatePath, ComputeAsync, costs, modifiers, links and blocked path handling. It also covers chase and follow loops, state machines, line of sight checks, spawning, pooling and scaling to many NPCs.
The skill recommends running NPC logic on the server and driving all NPCs from one staggered think loop instead of a script per NPC. It includes a pathfinding walk function and a state machine example with Idle, Chase, Attack and Return states. It is aimed at developers creating enemies, pets, followers, shopkeepers or wave spawners, or fixing NPCs that get stuck, jitter or lag the server.
Written from the project's SKILL.md and checked against it.
What it can do
- Pathfinding walkWalks a Humanoid along a computed path with jump and blocked-path handling.
- State machineIdle, Chase, Attack and Return states with aggro, leash and attack range.
- Line of sightUses raycasts so NPCs skip pathfinding when they can see their target.
- PerceptionFinds targets by radius or player list, with field-of-view and reaction delay tips.
- Server ownershipSets NPC network ownership to the server so NPCs do not stutter.
- Staggered think loopDrives all NPCs from one service at a fixed rate with staggered updates.
- Scaling guideReference notes on spawning, pooling and running hundreds of NPCs.
What you need
- Roblox project written in Luau
Try asking
- Create a chase and attack state machine for a Roblox enemy NPC.
- Write a walkTo function using PathfindingService with blocked path handling.
- Show me how to run all my NPCs from one staggered think loop.
Good to know
- Client pathfinding only sees streamed-in geometry, so paths should be computed on the server.
- Start to goal straight-line distance is limited to 3,000 studs, with a 20,000-node budget.
- Far goals need intermediate targets.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/roblox-npc-ai/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to roblox-npc-ai
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
roblox-npc-ai: common questions
Does this skill use FindPathAsync?
No. The source says CreatePath with ComputeAsync is the current API and FindPathAsync is superseded.
Where should NPC logic run in Roblox?
The source says NPC logic runs on the server, while visual extras such as idle animations and nameplates can run on clients.
Can this handle hundreds of NPCs?
It recommends one shared think loop and points to a separate reference file on spawning, pooling and performance with hundreds of NPCs.
How do I install roblox-npc-ai?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is roblox-npc-ai free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is roblox-npc-ai safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to roblox-npc-ai?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
