I put two hinge constraints on two different models. The constraints are facing the same way. It is set to servo. Angular velocity = 0.3 and max torque = 100,000,000. It is set so high because it is connected to two models high in parts. And this is how I'm trying to move it:
local hinge = script.Parent
while true do
hinge.TargetAngle = 90
wait(2)
hinge.TargetAngle = 0
wait(2)
end
And it won't work please help me.

8 comments
HOW HARD IS IT JUST TO READ MY BIO?
Sorry, I just put the script together without thinking lol
Please help me and not tell me that I need to indent because I already know that.
Make sure the script is in the HingConstraint and the ActuatorType supports "TargetAngle" then be sure to check the script for false lines of code.
Yep already did
This is what the roblox tutorial said to do and it's not working
Please help me
Make sure you have an attachment on both parts you wish to rotate, and that the hinge script is actually editing the TargetAngle of the hinge constraint.