Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why isn't the hinge constraint I put on these two models working?

Asked by 7 years ago

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.

0
HOW HARD IS IT JUST TO READ MY BIO? hiimgoodpack 2009 — 7y
0
Sorry, I just put the script together without thinking lol rilgundam 65 — 7y
0
Please help me and not tell me that I need to indent because I already know that. rilgundam 65 — 7y
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. LastApollo 76 — 7y
View all comments (4 more)
0
Yep already did rilgundam 65 — 7y
0
This is what the roblox tutorial said to do and it's not working rilgundam 65 — 7y
0
Please help me rilgundam 65 — 7y
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. JusticeOfScarlet 62 — 6y

Answer this question