Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited 6 years ago

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)

0
If you copied and pasted that from somewhere, that's most likely why there's an unexpected symbol. Ultimate_Piccolo 201 — 6y
0
no i did that FilthyMonsterPlays 8 — 6y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
6 years ago
Edited 6 years ago

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.

0
Thx it worked FilthyMonsterPlays 8 — 6y
0
No problem. RubenKan 3615 — 6y
0
can u help me one last time FilthyMonsterPlays 8 — 6y
0
Edit The New Script So u can Help me FilthyMonsterPlays 8 — 6y
Ad

Answer this question