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

Why doesn't this servo constraint work with the script I made?

Asked by 6 years ago
Edited 6 years ago

I have two servo hinge constraints to act like a drawbridge is going down. The constraints are facing the same way and the AngularSpeed = 0.3 and ServoMaxTorque = 10,000,000 because the model that is moving has a lot of parts. I have tried a lot of different values and it still hasn't worked. I've set the max torque to the highest and it still hasn't worked. Here is the script that makes it move:

local hinge = script.Parent

while true do
    hinge.TargetAngle = -90
    wait(2)
    hinge.TargetAngle = 180
    wait(2)
end

This isn't making the bridge move and I don't know why. Please help me if you can and thanks in advance:).

~rilgundam

1 answer

Log in to vote
0
Answered by 6 years ago

Never mind I fixed it

Ad

Answer this question