Preventing a player from moving while on a moving object

I’d like to tween an object using CFrame, however I am as yet unsure how to prevent a player from moving around and falling off. For example, I’d like to give players the ability to jump, without being thrusted backwards or possibly falling off.

This is a video of what I’m trying to achieve:

If you guys have any tips/advice that could help me, that’d be much appreciated!

Some people move objects by tweening or incrementing the CFrame of objects by code, and this does make the move, just not physically. And because of this, players just slide off of it.

So instead of tweening or manually incrementing the CFrame of the boat, you can use MoverConstraints (like PrismaticConstraint).

You can read more about the process of using PrismaticConstraints here.

3 Likes

Thank you! Exactly what I was looking for.

1 Like