How do I make a custom heads up display for a car in Roblox studio?
1 Like
First off, I would recommend to turn off the original “HeadsUpDisplay” of the seat.
Then, in order to get the speed of your car, you can use this line of code:.
local CarSpeed = SEAT.CFrame.LookVector:Dot(SEAT.Velocity)
CarSpeed= math.floor(CarSpeed)
print(CarSpeed)
Instead of SEAT, use your seat model
I used math.floor()
to convert the velocity from decimal to integer
Now its as simple as using a Text-Label and a local-script to display the speed!
2 Likes