They wait until the train is either travelling slowly enough, or stop and climb onto the roof and ride it like a surf board.