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

Increase speed with each step?

Asked by 5 years ago

How to increase speed every time you walk? For example, each step you take increases speed 1

1 answer

Log in to vote
4
Answered by 5 years ago
Edited 5 years ago

Put this in starter player.

script.Parent.Humanoid.Running:Connect(function(speed)  
   while (speed > 0)
   do
   print("Player is moving")
   speed += 1
   wait(1) -- change to how long it takes to take a step
   end
   print("Player stopped")
   -- if you want to reset speed when they stop, do it here (default speed is 16)
end)

This script is not tested.

Ad

Answer this question