NPCs
PathfindingService navigation and patrol/chase AI.
Default agent
Generates naive MoveTo loops that stall on obstacles or doors.
With skill
Configures PathfindingService with blocked-path recovery and scalable patrol or chase loops.
Example prompts
Install
npx skills add nonlooped/roblox-suite --skill roblox-npcsTechnical detailsCoverage, examples, and verified sources.
Coverage
- PathfindingService, agent parameters, and blocked-path handling.1
- PathfindingModifier and PathfindingLink, with material and region costs.1
- State machines, behavior trees, and patrol/chase patterns at scale.12
References
- Route NPCs through special regions or handle streamed geometry
- Implement patrol, chase, combat, or state transitions
- Configure agents, compute paths, or handle blocked waypoints
- Reduce pathfinding and simulation cost as NPC counts grow
Example scripts
NPCPathFollower.luaExperimentalUnverified in live servers. Adapt and test before shipping.
PathfindingUtility.luaExperimentalUnverified in live servers. Adapt and test before shipping.
PatrolBehavior.luaExperimentalUnverified in live servers. Adapt and test before shipping.
Sources
- Pathfinding (characters)Verified 17 June 2026
- Streaming (workspace)Verified 17 June 2026
- Engine API ReferenceVerified 17 June 2026