How to stop something from being cancelled out in a if statement

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)

change this line to

else

there it should be fixed now

Thank you very much, I am new to scripting so that is why I didnt know.