How to lock x and z orientation on part

i found out how to do this, use BodyGyro and set its P to like 400000 then leave its MaxTorque to default