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:

1local hinge = script.Parent
2 
3while true do
4hinge.TargetAngle = 90
5wait(2)
6hinge.TargetAngle = 0
7wait(2)
8end

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 — 7y

Answer this question