A friend of mine who isn’t a member yet, got a problem with a “Walkspeed Simulator” script. I also don’t know how to fix it and make it work. Can anyone help? What’s wrong?
-- Starting speed
local player = game.Players.LocalPlayer
local char = player.CharacterAdded:wait()
local h = char.Humanoid
h.WalkSpeed = 10
end
-- Speeding up
while true do
local player = game.Players.LocalPlayer
local char = player.CharacterAdded:wait()
local h = char.Humanoid
wait(1)
currentWalkspeed = h.WalkSpeed
h.WalkSpeed = currentWalkspeed + 1
end