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

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

Asked by 9 years ago

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!

0
Help'd be nice. JustGimmeDaBux 18 — 9y

1 answer

Log in to vote
0
Answered by
Relatch 550 Moderation Voter
9 years ago

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.

Ad

Answer this question