Moving Train like in dead rails

I have now tried countless times to make a train system,

I’m trying to make a primary part move with all the object welded to it. The parts should accelarte when the player holds down “W” and decelarate when the player presses “S”. and should go higher than 50 nor go backwards. Players also have to move with the train when touching the train.

Could someone please help me or link me to a tutorial

Should the model follow a certain path like in Dead Rails or just be going a straight line?

A straight line would be fine.

This topic has been discussed numerous times so idk if you did your research on this but its whatever… Check out this post it has your solution