If I were to make a train, and move it smoothly across a rail, what would I use?

So I am working on moving parts as a whole, especially using for _,v in pairs(table/array).
But I have tried multiple concepts.
If I tween all the objects, they just move to one specific position and everything is crumbled up into one parts.
If I use a wait(0.05) in a repeat until loop for every movement, same thing happens.

What are my other options? I heard of some CFrame function, but I forgot it’s name.

You should look at this post: How do I make my minecart stay on the rails? - #17 by EchoReaper
EchoReaper gives a pretty detailed explanation for how you could accomplish something like this.

Hm, interesting, seems diferent but I’ll try.

You can always use TweenService (though some don’t use it).

I said that I tried tweening but it didn’t go well.

Is it one train car or multiple?

One.
30 charsssssssssssssssssssss

I believe the post I previously linked would work well for this.

Mhm, BodyPositions are very good, used them before, never actually thought about it.

Well. no. He actually uses align position and align orientation. Legacy bodymovers are unsupported now.

Ohhhhh, I should read more. (looool)