Returning Player Movement Speed

Hey everyone,

I remember searching for a function on the Wiki a while back that returns a player’s current movement speed, to no avail. Maybe I’m just oblivious, but is there a function to get a player’s current movement speed? I know there’s a way to set it, so that’s why I ask.

If there isn’t a pre-made function, I’m assuming I could always just manually track it with a variable attached to the player. Hoping there’s an easier solution though. Thanks in advance everyone! :slight_smile:

Yep, to get the velocity of a player as a vector do someplayer:GetVelocity()

To get his speed as a number you can do someplayer:GetVelocity():Length()

Ahh, I didn’t think to associate speed with velocity. Probably something to do with the fact that I barely passed Physics with a C in High School lol. Thanks MegaJohnny! :slight_smile: