How can I let one player pilot a spaceship while others freely walk around inside it (multiplayer)?

So the ship is moving in space, and meanwhile, multiple players should remain synced and walk smoothly inside the moving ship, without jitter or physics issues

Kind of like the game “jump ship”

I have tried but I can’t seem to find any tutorials on this.

Any ideas?