game.Workspace.Partyes.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
plr.Character.Humanoid.WalkSpeed = +1
end
end)
this is in a player added script
game.Workspace.Partyes.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
plr.Character.Humanoid.WalkSpeed = +1
end
end)
this is in a player added script
You're adding it wrong, what you need to do is:
plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed+1
when you want to add always restate the value of what you want to add after the = sign, if you put plr.Character.Humanoid.WalkSpeed = 1 then it would set the WalkSpeed to 1 instead of adding it
thank you
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
error: Expected identifier when parsing expression, got '+'