Skip to content

Instantly share code, notes, and snippets.

--!strict
-- Showcase.server.lua (ServerScriptService)
-- RoDevs Scripter Application: Advanced AI Director + Zone System + Replication Optimisations (Relevancy + Delta + Batching)
-- Requirements met:
-- - 200+ lines functional code, structured, modular (tables-as-modules), events, loops
-- - Complex: server-authoritative NPC AI, pathfinding throttle, stuck recovery, zone-driven spawning, multi-client relevancy replication
-- - Best practices: cleanup (Maid), fixed-step loops, no per-frame per-NPC Heartbeat spam, delta updates, batching
--// Services
local Players = game:GetService("Players")