Player glitches when standing on a moving platform

So i was trying to make a Dead Rails game, and when i made the train moving fast the players just glitches back and forth, the faster the train the intense the glitch is. This will be really annoying because we just see other players glitches when standing on the moving train. Btw my train is unanchored and uses prismatic constraint to move. So is there a way to fix this?

Also you can try testing yourself, make a fast moving platform and make 2 players stand on it, you can see the other player glitches back and forth.

You could try applying physics to the character that matches them up with the trains speed?
or
Maybe try making it so the train replicates to the clients instead of purely handling it on the server.