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?