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

How to tell how fast the player is moving?

Asked by 7 years ago

How do you tell how fast a player's character is moving at one specific point in time (Not walkspeed as that only states a players maximum speed, and is fixed)

2 answers

Log in to vote
0
Answered by
cabbler 1942 Moderation Voter
7 years ago

Check the velocity of any part in the character. Velocity is how far something moves in one second, and speed is Velocity.magnitude.

Try player.Character.PrimaryPart.Velocity or player.Character:FindFirstChildOfClass('BasePart').Velocity

Ad
Log in to vote
-2
Answered by 7 years ago

Take the position of a player, wait 3 seconds, take the position again, use the difference equation. That is their distance traveled per 3 seconds.

0
Who the hell are the idiots downvoting this? I gave a clear and proper answer. KillPowerAlex135 5 — 7y

Answer this question