What's the problem in the script?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
I put this code in a LocalScript, and it'll run the script once the player touches the Brick with the script in it. Wheres my problem? I'm new to scripting...
1 | local character = game.Players.LocalPlayer.Character |
3 | script.Parent.Touched:connect( function () |
4 | if character.Humanoid.WalkSpeed = = 16 then |
5 | character.Humanoid.WalkSpeed = 20 |
7 | character.Humanoid.WalkSpeed = 20 |