Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Showing the [Speed] Value when in a Vehicle? [NOT SOLVED

I have finally made some really nice vehicles, but I am stuck on this little error.

Similar to Roblox Death Racing, by coolstuntman12345, I want users to be able to see their current speed they are racing at. This is what I have so far.

local car = script.Parent.Parent 
	display.walkspeed.car
		display.maxspeed.car

Thank you for the help!

1 comment

0

Help'd be nice.

1 answer

✓ Accepted answer

There isn't really anything you did wrong, but you did miss a few things. First, there is a property of a VehicleSeat called HeadsUpDisplay. It allows you to show a small blue bar that shows the current speed the vehicle is going.

local car = script.Parent.Parent
car.VehicleSeat.HeadsUpDisplay = true --Change "VehicleSeat" to the name of the seat in your car. HeadsUpDisplay is a property of the seat that allows you to show the current speed the player is driving their car at. Of course, you would want to make that true.

To edit other properties of a VehicleSeat, you can choose from the properties it shows inside of the VehicleSeat. Examples include MaxSpeed, Steer, Throttle, Torque, and TurnSpeed.

Accept this answer if it helped.

This discussion is preserved as it was. New answers, comments, and votes are closed.