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?
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.
If I understand
local x,y,z = humrootpart.CFrame:VectorToWorldSpace(humrootpart.Velocity)
z will be the forward or backwards velocity