Finding the speed of a driver seat

Greetings,

I am trying to find the speed of the driver’s seat so I can then make a GUI for it and show it there. Can someone help me please? And how can I get rid of the old speed GUI? Thanks.

The Magnitude property on Vector3s and Vector2s calculates the magnitude of the vector. Magnitude can be used to calculate the distance between two objects. You’d remove both places to get the vector’s Magnitude. Look up the Pythagorean distance formula to learn how Magnitude is determined. It’s the same situation as before (vecA-vecB). Magnitude. Use Velocity.Magnitude. For example, if you print the Velocity of your HumanoidRootPart, while walking, Magnitude will print your WalkSpeed.

2 Likes

You can uncheck HeadsUpDisplay property of the driver seat to disable the old speed GUI.

You can find the speed of the driver’s seat finding the magnitude of the velocity of the driver’s seat.

Basically: DriverSeat.Velocity.Magnitude

And to round the value off to the nearest whole number you can use math.floor()

So, it would be: math.floor(DriverSeat.Velocity.Magnitude)

1 Like

Thanks a lot, very useful information!

1 Like