Scripting a Vehicle

I want to script a car/vehicle system, but I am unsure on where to start as its something I have no knowledge on whatsoever and don’t know where to begin. What is the best way to start on a vehicle system, or just any system for scripting a boat, vehicle, plane, etc?

3 Likes

You will need to start by making the chassis itself, this means welding together a car and using constraints and stuff. You can view a video on how to make a boat here, but this can be applied to a car or anything else.

Sure for a car it’s different, but literally it’s just a Motor and you still have to set the Force of it.
The script is basically the same.

2 Likes

the boats and planes work more on scripts than a car has to with cars you can just use a CylindricalConstraint for speed and turning and a SpringConstraint for a shock and to adjust wheel height etc then script it to just change the AngularVelocity to what your vehicleseat throttlefloat is set to and also your Orientation for steering by steerfloat

also as above you want to setup just a brick rigged with this as your chassis then you just drop a new car body on it and weld to it, adjust a few values and you have a new car

results in a car that works like this

4a241284f4580007e89e3775efe4b2e9

2 Likes

For a more technical resource I would recommand this guy

he also has a video about planes aswell if you’re interested

2 Likes