How to make an unanchored part only move on one axis?

I’m trying to move an unanchored part only on one axis (Z-axis) even mid-air. I tried BodyGyro, BodyPosition, AlignOrientation, and AlignPosition but the X and Y axes don’t stay the same.

I’m using BodyVelocity to move the part and it works well.

Also, I don’t want the part to be anchored and use a script because it won’t carry players when moving.

I think that You can mess with CollissionGroups. Make 4 anchored parts in Y and X axis blocking the movement of the unacnhored part. These parts will follow the position of the unanchored parts and CollissionGroups will ensure that the anchored parts will be able to collide only with the unanchored part.

Sure I can try that. I’ll update once I did.

You can use a plane constraint.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.