• Returning Player Movement Speed
    2 replies, posted
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 [b]is there a function to get a player's current movement speed[/b]? 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! :)
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! :)
Sorry, you need to Log In to post a reply to this thread.