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

Finding out current vehicle speed?

Asked by
4inis 15
7 years ago

Hi! So how you see from the title i want to how to get the speed that a vehicle is driving. As tires I use simple cylinders with hinges and a basic VehicleSeat for the driver seat. I want to make a script which would increase the MaxSpeed on reached the old MaxSpeed. I just need to know how to find out the current vehicle speed now...

Thanks for reading. I hope you could help me out.

1 answer

Log in to vote
1
Answered by 7 years ago

You could use the magnitude of the vehicles velocity:

Vehicle.PrimaryPart.Velocity.magnitude

https://en.wikipedia.org/wiki/Magnitude_(mathematics)

Ad

Answer this question