How do I not fall off moving bricks

I’ve been trying to figure this out for a couple days now and I can’t find any tutorials or videos about it on YouTube

Basically, I have a moving ship what goes 30 SPS, you can stand on it and all of that but as soon as you jump you get flung back since nothing is pushing the character forward while the ship is going forward. It gets annoying at times when you need to jump for example to climb a ladder, I need to know how to make it so the character moves with the ship.

You can make barriers and turn the barriers into 1 union, and make a script that changes CanCollide property at a certain time for the barrier (like repeat wait() until Player.Character:WaitForChild("HumanoidRootPart").Position. X and/or Y and/or Z >= number