How can I get a players Foward Velocity and Backwards velocity?

Im making a SM64 Type game, cald Script Quest. And I want to find a way to make it so that I can find the exact forward velocity number value that can be used for me to know how fast a player is going.

How can I get this?

You can use Humanoid.Running:Connect(function(Speed) which will return the speed of the player, or you can constantly check the AssemblyLinearVelocity of the HumanoidRootPart, using a changed event or something depending on your needs.

2 Likes

If I understand

local x,y,z = humrootpart.CFrame:VectorToWorldSpace(humrootpart.Velocity)
z will be the forward or backwards velocity

1 Like