I want to make a part rotate on one axis only if the player is on top of it

exactly what the title says, like this picture from that one game:

image

image

It would be in your best interest to use a hinge constraint

im trying to do that but i cant figure it out

put two invisible points and hinges on them using constraints

if you put weight on top of a part connected to another part with hinge constraint nothing happens

Set the HIngeConstraint to Servo, then lower the MaxForce so that weight on one side or the other causes it to drop down.
You may want to mess with the Density of your platform too. If it’s very dense then players won’t cause a very quick movement. If it’s not dense enough it’ll pivot pretty quickly.
Also experiment with the Restitution to control the movement.

still doesn’t seem the work, the part just stays still

Did you experiment with the values of the items I mentioned?
Is the platform Anchored?
Do you have the yellow arrows of both Attachments facing the axis you want the platform to rotate on?
Go into test mode and stand on one side of the Platform. Change the values until the platform starts to rotate.

Isn’t it something to do with an if statement? Like if the player is in contact with it, then move it?

If you can configure the HingeConstraint to allow the platform to tilt to one side or the other without scripting then it’d be better. This would make it so that if 2 players stood on that side it’d tip more, or if they were standing on opposite sides it’d balance out.

Just experiment with it.