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

I made This Speed Upgrade But It wont Work Plz Help?

I want To make it That when you press a Button it Gives U boost Just Like All the Rpg game but it gives me An error - --Players.FilthyMonsterPlays.PlayerGui.Stats.Frame.SB.LocalScript:7: unexpected symbol near '.' this is the error--- SB is Speed Button By the Way

button = script.Parent ---- Old Script (Fixed)
player = game.Players.LocalPlayer
char = player.Character
humanoid = char.Humanoid

button.MouseButton1Click:connect(function()
 local humanoid.WalkSpeed = humanoid.WalkSpeed + 1
end)

2 comments

0

If you copied and pasted that from somewhere, that's most likely why there's an unexpected symbol.

0

no i did that

1 answer

✓ Accepted answer

Remove the local in line 7. You're not setting a value, you're adding onto an already existing value. The values from line 1 till 4 should have a local infront of them.

4 comments

0

Thx it worked

0

No problem.

0

can u help me one last time

0

Edit The New Script So u can Help me

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