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

How do I get players to gain movement speed while they are moving, and lose it when stopping?

Asked by 7 years ago

In my game, I want players to gain movement speed as they move, losing speed if they stop. How do I go about that?

0
Can you please describe in further detail what you are trying to do? AZDev 590 — 7y
0
He wants acceleration. Connect the humanoid running event to a walkspeed change. cabbler 1942 — 7y
0
I was trying to see if I could get some example code. I have no idea how to do what you said. Cabbler. shipleydog2 -3 — 7y
0
this isnt a request site; however, i'll give you a idea of how to do it. you can try defining tick() in a variable, then subtract tick() - variable to get how much the walkspeed increases by (speed = default_speed + (tick() - variable)). As for losing walkspeed, you can set it back to the default walkspeed when the .Running event returns 0. User#14829 0 — 7y

Answer this question