I am trying to possess a spaceship pawn as the driver then unposess and the ship should continue moving.

I am very new to the engine and was trying to implement a possession and unpossessing of my spaceship pawn. When I possess the ship, it works perfectly when I’m flying. When I unpossess the ship pawn and attach the player character to the ship, it is as if the ship has not moved, and the player falls in space. If anyone knows what I’m doing wrong, please let me know.