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)
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.