Add a speed pad that doubles WalkSpeed for 3 seconds.
Then playtest: walk onto the pad, read the output, and report WalkSpeed before, during and after. Fix any errors.
Ask for the whole loop, not just the code.
Read an error in 3 seconds
ServerScriptService.Coins:14: attempt to index nil with 'Parent'
Which scriptWhich lineWhat went wrong
Line 14 expected an object and got nothing (nil). Paste the whole line to your AI, not “it’s broken”.
Fix the cause, not the symptom
Patch (hides the bug)
Wrap it in pcall
Add task.wait()
Add if x then everywhere
Fix (removes the bug)
Find why the call fails
Wait for the right thing (WaitForChild)
Find why x is missing
Paste this into your AI
Don't patch around this error. Explain the root cause first, then fix it where the bad value comes from. Playtest again to prove it.
Quick check
The AI says: "Fixed! I wrapped it in pcall." What now?
pcall stops the error showing. The bug is still there, it's just silent now.
Lesson complete
You finished Start here: your first AI-built Roblox game.