Hello, developers, I am presuming this is a simple fix, however when I click a part it goes down like it’s meant to, however when I click it again it just stays in place when it’s meant to go back up. I believe the issue is how the 1st part of the script cancels out the 2nd part, here is the script I am using.
local evthing = script.Parent.Parent
script.Parent.ClickDetector.MouseClick:connect(function()
if evthing.A.Motor.DesiredAngle == 0 then
evthing.A.Motor.DesiredAngle = 1.3
elseif evthing.A.Motor.DesiredAngle == 1.3 then
evthing.A.Motor.DesiredAngle = 0
end
end)