To add on to what I just said, You will also need to move the player with the train, and to do this you could also look at these two topics: