What would I need to know how to make vehicles?

Hi Peps

Interesting thing finding me here, but I need a basic idea to know to script a train/car script, like what type of code, Variable, Strings, Loops, etc. Thank you if you could help me!

1 Like

For the movement you could use motors roblox provides, or cframing if you’re going to be making it custom.

For turning, if you use a motor you can use bodygyro to turn the vehicle in the direction it’s going. If using custom cars you can use CFrame.new(origin, direction), to make the car face the direction it’s going. You’d have to use a bit of math for that though, so it’s not recommended.

For speed you can use a number variable, and increase/decrease it depending on how much a player holds a key.

That’s pretty much all there is to making a basic vehicle.

3 Likes

There’s a lot of tutorials about this. Go check it out on devforum or YouTube,

1 Like