AI¶
The AI system is split across two sides of the client-server boundary because Roblox physics ownership requires different responsibilities:
| Side | What it does |
|---|---|
Server (PoliceNPCService) |
Humanoid NPCs — pathfinding, state machine, weapon/taze logic |
Client (PoliceCarController) |
Police vehicles — driving physics, steering PID, pursuit maneuvers |
- Police NPCs — server-side hierarchical state machine for foot cops
- Police Cars — client-side AI driving controller for police vehicles