I am RealTimeCreator, I am working on a 2D game and I have a problem with the moving parts I have made, they work fine in the way of moving, but when I jump on them I don’t move with it.
If you know how to fix this problem or could help me please reply.
Basically, you want to insert a BodyPosition instance in the part you are trying to move. Make sure the whole model assembly is unanchored. Then, in the code, change the BodyPosition’s position instead of the parts position.
Adjust the values of the BodyPosition, such as Power and MaxForce, to make sure the BodyPosition can support the weight of the character, and the platform itself.
You will likely also want to add a BodyGyro, which will prevent the platform from rotating in unwanted ways. This requires you to set the Gyro’s CFrame to the part’s CFrame in order to lock its rotation. You only need to do this once.
You could just attach the moving Platform to an Anchored Part with a PrismaticConstraint set to Servo.
You can set the limits of the Constraint, the amount of Force it uses, and the Player will move with it.