How do I make a sea of thieves style ship?

Hi, I am a new developer and I am wondering how to make a Sea of Thieves-style ship where multiple players can walk around a moving ship. I have tried to attach the player to the ship via AttachActortoActor but that has the side effect of yeeting the player into the merciless abyss. can I have some help with this? thank you!