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

0

HOW HARD IS IT JUST TO READ MY BIO?

0

Sorry, I just put the script together without thinking lol

0

Please help me and not tell me that I need to indent because I already know that.

0

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.

0

Yep already did

0

This is what the roblox tutorial said to do and it's not working

0

Please help me

0

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.