Hello, my name is HissingSoldier. I own a police roleplay community, for my next update I was going to try and add a gas powered chassis to all of my current vehicles. Although I cannot find a tutorial for this, if you could help me out that would be greatly appreciated.

 - HissingSoldier

5 comments

0

Not sure what you want from us. A "gas powered chassis" isnt exacly a universially identified coding term.

0

I want a Chassis or a script that I can put in my Chassis to make them so that the cars run off of gas and if they run out the car will stop.

0

Don't know much about what a chassis is, but first things first your going to need to create a value for the gass.

0

Create a gas variable and subtract every second by one. Then make the car only able to be driven when the gas variable is more than 0 (set the max speed to 0 if the gas is 0, and back to normal when it's not)

0

Are the vehicles coded by you? If not we can’t help much.