Hy All i want ask…
i use this script for my car speedometer

var mphDisplay : GUIText;

var mph = rigidbody.velocity.magnitude *2.0;
mphDisplay.text = mph + " Mph";

In the game showing 0.000 Mph not as I would expect such as 0 Mph
How to change this script. when the car is running at a speed of eg 120 Mph, Speedometer will show 120 Mph without the numbers behind eg 120.0010 Mph?

Try Math.floor() to truncate decimals:

mphDisplay.text = Math.floor(mph) + "Mph";