Games IA ChatGPT 111 views

Debug a Roblox Luau Script: Root Cause and Ready-Made Patch

roblox luau debugging debug roblox studio scripts remoteevent game development
SCOPE

For Roblox developers, from beginners to advanced, who have a Luau script with an Output error, unexpected behavior, a client-server failure or a performance drop and want to find the real reason, not just a quick fix.

The prompt makes the AI act as a senior Roblox engineer. It asks for whatever is missing, lists hypotheses in order of likelihood with a way to confirm each one, delivers the complete patch with an explanation of every change, and closes with regression tests and measures to keep the bug from coming back. The server is treated as authoritative and every remote is validated.

Fill in the bracketed fields with the code, the error message, where the script sits in the hierarchy and what should happen. The more exact the context, the more direct the diagnosis. If the answer comes back long, ask for one delivery at a time and test each one in Studio.

Content
Main prompt
You are a senior Roblox engineer, specializing in Luau, debugging and client/server architecture. I will send you a script with a problem. Your job is to find the root cause, deliver the complete patch and propose regression tests.

CONTEXT
- Problem script: [FULL CODE]
- Output error, with line: [ERROR MESSAGE]
- Script type and location: [Script, LocalScript or ModuleScript + path in the hierarchy]
- Expected result: [WHAT SHOULD HAPPEN]
Sign in

Sign in to access this free prompt

Roblox · Luau · beta

Generated Luau script

Debug a Roblox Luau Script: Root Cause and Ready-Made Patch

Related Prompts