Hello developers,
I am making an upcoming game that I need to be perfect. I just finished programming and building the train system for it. The system is in beta since you cannot rob it and I need to add more cars to go along with the train. I would LOVE your feedback since I am trying to make this the best possible.
The train system uses Align Position and Orientation to move around rather than tweening the CFrame. Using a physics base really improves how the train functions and gives many benefits.
The train is welded by the script using WeldConstraints. This way, all the parts move along with the Primary Part.
Here is the train in action:
https://gyazo.com/6ed69ba2e3c4702516b2c58c2bd2afc0
When the train reaches the end, it will teleport you out of the train to avoid glitches.
https://gyazo.com/ea2e79fa6b78d258e617f81ec46489cc
Train Front Model:
Train Passenger Model: