Server-Safe Roblox Luau NPC Dialogue System
For Roblox developers who want a reusable dialogue system with an option tree, progress conditions, and server-authorized actions, without trusting the client for anything sensitive.
The prompt asks for your project's context (NPCs, UI, remotes, data system, and Studio version) and delivers three files: DialogueDefinitions, DialogueServer, and DialogueClient. It includes a RemoteEvent message protocol, type validation, distance checks, rate limiting, and session cleanup.
Delivery comes in testable steps: first the structure and assumptions, then each script, and finally the test plan in Start Server + Players. Fill in the bracketed fields and paste the result into Studio.
Act as a senior Roblox developer in Luau, focused on client-server architecture and exploit security. Build an NPC dialogue system based on an option tree, using my game's context below before generating any code. PROJECT CONTEXT: - NPCs and Explorer paths: [PATHS: e.g., Workspace.NPCs.Guard, Workspace.Village.Merchant] - Interaction: [existing ProximityPrompt / NPC part / create ProximityPrompt]