roblox-npcs

roblox-npcs is a skill for Claude Code, Codex from nonlooped/roblox-suite. It costs 39 tokens per session (1,654 once invoked), scanned A, original, MIT.

A guide to making Roblox characters find paths and behave as non-player characters (NPCs), such as guards, pets, or zombies.

In plain words
What is it for?
Building patrol, follow, chase, and obstacle-avoiding NPCs with Roblox's PathfindingService.
Why use it?
It helps handle obstacles, blocked routes, terrain preferences, and movement patterns without designing a custom pathfinding system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Building patrol, follow, chase, and obstacle-avoiding NPCs with Roblox's PathfindingService.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nonlooped/roblox-suite/roblox-npcs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nonlooped/roblox-suite --skill roblox-npcs
Clone the repo
git clone --depth 1 https://github.com/nonlooped/roblox-suite

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for roblox-npcs

README.md
[![agentmods](https://agentmods.dev/badge/skills/nonlooped/roblox-suite/roblox-npcs/github.svg)](https://agentmods.dev/skills/nonlooped/roblox-suite/roblox-npcs)
Your own site
<a href="https://agentmods.dev/skills/nonlooped/roblox-suite/roblox-npcs"><img src="https://agentmods.dev/badge/skills/nonlooped/roblox-suite/roblox-npcs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for roblox-npcs

Your own site · 80×15
<a href="https://agentmods.dev/skills/nonlooped/roblox-suite/roblox-npcs"><img src="https://agentmods.dev/badge/skills/nonlooped/roblox-suite/roblox-npcs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01654
Opus 5.5 $0.00016 $0.00662
Sonnet 5.5 $0.00008 $0.00331
Haiku 4.5 $0.00004 $0.00165

Measured 1mo ago against content hash 6e94f4c58bdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

roblox-npcs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

roblox-npcs/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

roblox-npcs

Official sources:

Use PathfindingService for navigation on Roblox's navigation mesh. Build patrol, chase, and other behavior around its computed paths.

PathfindingService basics

Create a path:

local PathfindingService = game:GetService("PathfindingService")

local path = PathfindingService:CreatePath({
    AgentRadius = 2,
    AgentHeight = 5,
    AgentCanJump = true,
    AgentCanClimb = false,
    WaypointSpacing = 4,
    Costs = {
        Water = 20,
        DangerZone = math.huge,
    }
})
path.CalculationSecondsTimeout = 1

Compute and follow:

local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")

local success, err = pcall(function()
    path:ComputeAsync(rootPart.Position, endPos)
end)

if success and path.Status == Enum.PathStatus.Success then
    local waypoints = path:GetWaypoints()
    -- follow waypoints with Humanoid:Move()
end

Agent parameters

Parameter Default Purpose
AgentRadius 2 studs Minimum clearance from obstacles
AgentHeight 5 studs Vertical clearance
AgentCanJump true Allows jump waypoints
AgentCanClimb false Allows climbing truss parts
WaypointSpacing 4 studs Distance between intermediate waypoints
Costs nil Material/region/link traversal cost

Path.CalculationSecondsTimeout limits how long the solver may run per ComputeAsync call. Set it after CreatePath and before computing.

PathWaypoint actions

Each waypoint has a Position and an Action:

  • Enum.PathWaypointAction.Walk: normal movement.
  • Enum.PathWaypointAction.Jump: trigger jump.
  • Custom labels like "Climb" or "UseBoat" from PathfindingModifiers/Links.

Read the full file on GitHub · 184 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -15 lines · -57 tokens per session 6e94f4c58bdd
  2. 1mo ago First seen · 199 lines · 96 tokens per session scan A cabd156ece82

Subscribe to this mod's changes

roblox-npcs is a skill published in the GitHub repository nonlooped/roblox-suite (23 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 1,654 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

roblox-engineer

!cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/game-test-protocol.md 2>/dev/null || true !cat skills/shared/protocols/quality-gate.md 2>/dev/null || true !cat…

buiphucminhtam/forgewright · 50 tokens

roblox-dev-skill

Verified, current Roblox and Luau knowledge for writing, reviewing and debugging Roblox game code. Use it for ANY task that involves Roblox, Luau or Roblox Studio, even a quick question or a one-line snippet: scripts and modules, RemoteEvents, DataStores and ProfileStore, ProcessReceipt and monetization, UI, the Input…

MSayib/roblox-dev-skill · 203 tokens

roblox-best-practices

Roblox and Luau game code standards. Writes, reviews, and fixes Script, LocalScript, and ModuleScript code and game systems such as shops, DataStore saves, RemoteEvents, combat, NPCs, and UI. Use when a request involves Luau code or a Roblox Studio project, even when Roblox is never named, when a game bug is reported…

andrian-syh/roblox-best-practices-skill · 168 tokens

rbx-dev

Meta-skill for complete Roblox game development with Rojo — the entry point that knows and unifies the three specialist skills /rojo (filesystem→Studio sync, project setup), /rbx-studio (editor, MCP, assets, malware scan) and /game-design (roles, workflows, GDD). Use this skill for ANY Roblox game-dev undertaking…

ellmos-ai/skills · 182 tokens

rojo

Operating Rojo — the filesystem-to-Roblox-Studio sync tool for professional Roblox development in VS Code / Claude Code instead of the Studio editor. Use this skill whenever Rojo is involved: rojo serve/rojo build, writing or debugging default.project.json, rokit/rokit.toml and tool versions (Rojo, Lune, Wally)…

ellmos-ai/skills · 160 tokens

roblox-studio

Build, inspect, repair, validate, and playtest Roblox Studio maps and Luau through the local bridge. Use for SceneSpecs, terrain, Studio edits, gameplay objects, visual checks, and Rojo output.

ShiroKSH/skills · 48 tokens