How do I make a train and make it self driving to get to one place to another?

Hi, I am new to making games but my game involves needing a train that just needs to move straight then stoping. I have been looking at videos but they have not been so helpful. But if there is anything that can help me. please tell me

I hope you have a good day or night. :wave:

1 Like

My only idea is that you make a series/path of parts and then tell the train model to move itself to each part’s CFrame one by one.

1 Like

Ok, I will try that thank you for the suggestion. :grin:

Keep in mind that you should use a CFrameValue as a variable for the train model’s CFrame to depend on. You can tween this CFrameValue, however keep in mind that this will make the train model to slowly move in a straight line as the tween would just tween the CFrame value to the next CFrame value in a “straight line”, I hope you understand this.

1 Like

Do you need a player to be able to ride the train or is it just for visual effect? You would need to do it a different way if you want it to be rideable.

I want it to be able for the players to sit down on the seats but not to be able to drive it.

Ok, do you have a train model already? If you do, then you can weld all the parts in it together with weld constraints and use a BodyVector to move the train so players can stand in it and sit without falling or sliding off.

I don’t have a train model but I am making one.

okay I would make it first then try to get it to move

ok thanks for all the help so far -u-

1 Like