In short.
roblox-npcs is an assistant skill for Roblox developers building NPC navigation and behavior, but its experimental scripts need adaptation, fixes and runtime validation before production use. It combines PathfindingService guidance with a path follower, a patrol/chase state machine and utility functions. The supplied code leaves combat unfinished and has lifecycle and cancellation gaps. Roblox API compatibility, movement reliability and supported NPC counts have not been assessed through execution.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied roblox-npcs folder: SKILL.md; references/modifiers-links-and-streaming.md, npc-behavior-patterns.md, pathfinding-service-details.md and performance-and-scaling.md; scripts/NPCPathFollower.lua, PathfindingUtility.lua and PatrolBehavior.lua. It also includes the repository-root LICENSE above the folder. The wider repository, linked roblox-physics skill and external Roblox documentation were not supplied. No code was executed; API compatibility, gameplay outcomes, cleanup behavior under execution and performance remain unverified.
The overview
Identity
roblox-npcs is a skill folder in nonlooped/roblox-suite. Its SKILL.md tells an assistant when to use the material for Roblox NPC navigation and behavior. Four reference documents explain particular topics, and three Luau modules provide implementation examples.
The original folder is available at [https://github.com/nonlooped/roblox-suite/tree/main/roblox-npcs]. The supplied files belong to commit f1111d8e0c7293d2ead6a55de6214c54a52448c7. The NPC behavior uses geometric pathfinding and scripted states; the supplied modules do not integrate a generative model.
Assessment
This is useful material for learning NPC navigation or starting a prototype. It connects route computation with movement, blocked paths, behavior states and cleanup, giving developers more context than an isolated pathfinding snippet.
Every bundled script is labelled experimental, intended for adaptation, and without automated coverage. The patrol example contains only a placeholder for attacks. Source inspection also identifies cleanup and overlapping-request concerns, so the examples should not be treated as a finished NPC system.
Users
Beginners who already understand Roblox models, scripts and basic Luau can use the explanations to connect navigation concepts with code. A waypoint is a position along a route; a state machine decides whether the character should patrol, chase, attack or return.
Experienced developers can inspect the typed module interfaces and adapt route costs, movement timeouts and custom waypoint handlers. Developers expecting complete combat, animations, group coordination or demonstrated performance at a particular NPC count will need additional implementation and evidence.
Capabilities
NPCPathFollower exposes agent dimensions, jumping and climbing settings, waypoint spacing, traversal costs, movement timeouts and retry limits. Its code handles jump waypoints, reacts to blocked waypoints ahead, and invokes supplied functions for custom waypoint labels.
PatrolBehavior supplies Idle, Patrol, Chase, Attack and Return states. It finds player characters through a spatial query and limits chase recomputation using elapsed time and target movement. PathfindingUtility separately provides a recomputation predicate and readable waypoint formatting.
The references discuss modifiers, links, streamed geometry, shared routes, regional patrols and staggered updates. Those discussions do not establish that the bundled patrol module implements those features. Boats, teleporters, formation movement and actual attacks require additional code.
Using it
Requirements
The modules depend on the Roblox runtime and its engine services. PatrolBehavior expects an NPC model containing a Humanoid and HumanoidRootPart. Patrol destinations are Vector3 positions. NPCPathFollower must be a sibling ModuleScript of PatrolBehavior because the latter requires script.Parent.NPCPathFollower.
The guidance recommends server execution for authoritative movement and combat decisions. Special routes require world objects such as modifiers, attachments and links, plus custom traversal code. No supported Studio version, assistant host, skill installation command or compatibility matrix is specified.
Mechanism
The follower creates a Path using the configured agent properties, assigns a calculation timeout, and calls ComputeAsync inside pcall. If computation succeeds, it reads the waypoints and issues Humanoid:MoveTo commands. MoveToFinished advances the route, while timeouts and unsuccessful movement schedule retries. A blocked waypoint ahead schedules recomputation.
Custom labels dispatch to developer-supplied handler functions before ordinary movement continues. The behavior module updates on Heartbeat, detects targets and switches states. Chase recomputation requires both the configured interval to have passed and sufficient target movement. PathfindingUtility offers similar throttling separately; PatrolBehavior does not import it.
Setup
Obtain the original roblox-npcs folder and retain the repository-root LICENSE. The folder contains the assistant instructions, four references and three scripts. How to register this folder with a particular assistant is unspecified.
For manual integration in Studio, the module structure implies placing NPCPathFollower and PatrolBehavior together as ModuleScripts, then requiring PatrolBehavior from a server Script. Supply a valid NPC model and patrol positions, construct the behavior and call start(). Add application-specific combat and traversal handlers, and arrange explicit cleanup when replacing or removing NPCs. This setup has not been executed.
Example
The supplied usage example configures two patrol markers, PatrolA and PatrolB, with a detection range of 30 studs, an attack range of 5 studs and a chase timeout of 10 seconds. It uses a 0.5-second recomputation interval and a 4-stud target-movement threshold, then calls behavior:start(). These are example settings, not measured recommendations.
The intended scenario is a guard patrolling between markers and pursuing nearby players. Entering Attack only reaches a cooldown-controlled placeholder; the developer must supply the attack itself. For a simpler navigation example, NPCPathFollower.new(humanoid) creates a follower, follow(targetPosition) requests movement, and Destroy() performs its explicit cleanup. No movement outcome was observed.
Assessment & evidence
Limitations
Combat is incomplete. Although the guidance recommends line-of-sight validation, PatrolBehavior uses spatial detection and distance checks without a raycast. Entering Attack also does not explicitly stop the active follower, so previously requested movement may continue. These are source observations; their gameplay effects were not tested.
Cleanup is incomplete across the two modules. PatrolBehavior stops and discards followers without calling their Destroy method, leaving their Humanoid.Died connections attached. Its own death connection is not stored for disconnection during explicit destruction. This creates a risk of retained objects or accumulating listeners when behaviors are replaced.
Movement retry delays are not tracked for cancellation. Path computations also lack a request identifier checked after ComputeAsync returns. An old retry or overlapping computation could therefore interfere with a later follow request. These are static concurrency concerns, not reproduced failures.
Current engine compatibility is unknown. The documents assert particular APIs and limits, including Path.CalculationSecondsTimeout, a climbing waypoint action, a 3,000-stud distance limit and an approximately 20,000-node budget. Those claims are not independently established by the supplied files. The timeout assignment is outside the protected ComputeAsync call.
Reasoning
Separating navigation from behavior makes the examples easier to adapt: the follower handles routes while the state machine decides destinations and actions. Server execution also follows the resource's recommendation that gameplay decisions use server-known positions. Whether an integration actually runs on the server depends on where the developer places it.
The performance advice is broader than the implementation. While chase pathfinding is throttled, Idle and Patrol call findTarget on each Heartbeat, and each call rebuilds a list by iterating Players:GetPlayers before making the spatial query. The example therefore still performs repeated player-list work. It also contains no shared scheduler across NPCs, so large-population efficiency cannot be inferred from the guidance.
Alternatives
The skill points to Roblox's official pathfinding guide [https://create.roblox.com/docs/en-us/characters/pathfinding] and streaming guide [https://create.roblox.com/docs/en-us/workspace/streaming]. These are places to verify engine behavior before adopting the examples. Their contents were not supplied, so no detailed comparison is established.
For simple movement, the behavior reference describes Humanoid:MoveTo without pathfinding, while the scaling reference suggests direct movement when a target is close and visible. For characters without a Humanoid, the behavior reference suggests AlignPosition, AlignOrientation or LinearVelocity. These approaches require different movement code; the linked roblox-physics skill is outside the supplied scope.
Evidence
The source snapshot contains SKILL.md, all four listed reference documents and all three listed Lua scripts, together with the repository-root MIT notice. The original files are pinned to commit f1111d8e0c7293d2ead6a55de6214c54a52448c7; the entry file is [https://raw.githubusercontent.com/nonlooped/roblox-suite/f1111d8e0c7293d2ead6a55de6214c54a52448c7/roblox-npcs/SKILL.md].
The implementation findings come from reading the supplied source. Nothing was executed. No automated test results, Studio sessions, profiling traces or independent benchmarks were supplied. External documentation links provide attribution but do not independently confirm the API claims in this snapshot.
Access & freshness
Costs
The MIT license permits use without a software license charge. The supplied material gives no assistant pricing, Roblox service charges, support pricing or measured operating cost. Total cost is unknown.
The performance guidance treats path computation as work that should be budgeted and recommends throttling, staggered updates and profiling. Its timing examples do not establish a hardware requirement, achievable frame rate or supported NPC population.
Rights
The captured repository-root LICENSE is MIT, copyright 2026 nonlooped. It permits use, modification, redistribution, sublicensing and sale of the software and associated documentation.
Copies or substantial portions must retain the copyright and permission notices. The license disclaims warranties and limits the authors' liability. These permissions concern the supplied software and documentation; rights to separately added game assets are not established here.
Freshness
SKILL.md and the four references carry a last_reviewed date of 2026-06-17. All three script headers say Last verified: 2026-06-17, while also declaring no automated coverage. Those are author-supplied labels, not accompanying runtime evidence.
The supplied snapshot was captured on 2026-11-16 at the pinned commit. Changes after that revision and compatibility with the current Roblox engine are unknown. The moving main-branch URL may now show different content.
Actions
Before integrating the examples, verify the referenced timeout property, waypoint actions, path statuses and engine limits against current Roblox documentation. Keep the source revision and license notice with the copied files.
Implement the missing combat behavior and line-of-sight checks. Define whether Attack should stop navigation. Make behavior disposal destroy its follower and disconnect owned events, and add cancellation or request sequencing so older work cannot affect newer movement.
Then validate blocked routes, unreachable targets, jumps, custom traversal, rapid retargeting, death, removal and respawn in Studio. Profile the intended player and NPC population, including target detection as well as path computation. These are recommended next steps; none was performed.
