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

Drawbridge script W/ Ropeconstraints , where is the error?

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

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

This does not work, the part "gate" is unanchored. The ropeconstraints and attachments are in their correct places.

Where am I going wrong with this?

All help appreciated.

0
Do you have the function run in the event that you click it? Jo_Bot 67 — 6y

Answer this question