Making a train system

Hi everyone, now this is a big question and I don’t expect anyone to explain it step by step or anything, however I’m just looking for some general pointers on what to do to make a train system that can…

  • Not be easily glitched
  • Go round corners
  • Run smoothly

I’ve considered just using the default roblox chassis but I can’t figure out how to make it go around corners which, in itself is something it’d really need to do. I understand some games use CFrames and tweens etc but I wouldn’t know where to start with getting it to go to places.

Any answers are appreciated if you have any idea about how I could start off.

4 Likes

You can create a folder inside of workspace that has a bunch of nodes that you use to direct the train. Tween the train to each node via an in pairs loop, use the tween.Completed:wait() to ensure that it doesn’t bug, and make sure you’re tweening the CFrame, not position so that it stays inline with the track.

3 Likes

Will the train have to be 1 whole rigid thing?

Most transit groups have been using gliders with a mix of BodyVelocity.
I’ve used this train: https://roblox.com/library/546187345 to make the base of my chassis. It helped me understand things.

Physics would be best rather than using TweenService.

  • I have never tried cylinders on my train chassis, but I did use a brick on top of the track, and the bottom to prevent constant jumping. Then wheels on the inside of the tracks to turn.

If you want physics based trains, you can make flanges on the wheels, but thats usually jumpy and glitchy, you can have wheels under the bottom of each bogey/car/cart to guide inside the tracks, or use some parts under with low friction set to smoothly glide along and keep the train on the rails.