Help?


I'm making a humanoid's WalkSpeed increase gradually as he or she runs. But instead the walkSpeed increases only when the player doesn't move at all!

local dude = script.Parent

dude.Running:connect(function()
    if dude.WalkSpeed > 0 then
      for i = 16,600,1 do 
dude.WalkSpeed = i 
wait()
end
    else
       dude.WalkSpeed = 16
    end
end)~~~

1 comment

0

What do you mean by "chance a value if it stays the same for 5 seconds?"