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

Drawbridge/Portcullis script using ropeconstraints, issue?

Asked by 6 years ago
gate = script.Parent.Parent.Gate
ropelength = gate.RopeConstraint.Length

function OnClick()
    while ropelength >= 0 do
        ropelength = ropelength - 0.2
    end
end

script.Parent.ClickDetector.MouseClick:connect(OnClick)

Hello, I am Luciano and I am new to scripting. I have checked my attachments, ropeconstraints, and the part "Gate" is not anchored

Why does this not work?

0
Is there any error outputs? GamingOverlord756 48 — 6y
0
None. AntonioVillavicencio 0 — 6y

Answer this question