Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

For some reason my walk and Run GUIs won't work in game but they work in Studio?!

These 2 scripts won't work in Game but they do in studio? function Die() game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 40 end script.Parent.MouseButton1Click:connect(Die)

function Die() game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 end script.Parent.MouseButton1Click:connect(Die)

1 comment

0

Please format your code in lua code block.

1 answer

✓ Accepted answer

Is your script in a LocalScript? I'm noticing your using LocalPlayer. LocalPlayer will only work in a LocalScript. Just put your code in a LocalScript and it should be fine.

1 comment

0

Thank you! It worked perfectly :D

This discussion is preserved as it was. New answers, comments, and votes are closed.