How to make train turn on tracks

What do you want to achieve?
I want to achieve the ability for my train to move

What is the issue?
So, I tested my newly built train on some tracks I made not too long ago. And uhm, I made some turns to the track that would make the train turn but unfortunately when testing the game out, I didn’t get what I hoped for.

Screenshots

Heers my track and train set

And here’s the outcome of the result

Would I need a script for this type of occasion? No, if not then what would I need to use?

What solutions have you tried so far?

I’ve looked at YouTube videos, some devforum posts but nothing seemed to help :confused:

Any help is appreciated :slight_smile:

1 Like

Do what normal trains do. Make your wheels cone-shaped so they automatically center the car on the rails.

2 Likes

The answer to this is simple, and it doesnt even require scripting at all.

What you’re looking for is a “Glider” system. a glider is a part(or multiple parts) located under the wheels of your train & in between the rails. Due to this, the gliders will touch the rails at a curve preventing the train from going off the rails.

Here’s a rough sketch I made. Hope this helps!