script.Parent.ClickDetector.MouseClick:Connect(function()if isopen==false then isopen=true script.Parent.DoorOpen:Play()doormotor.Motor.DesiredAngle=-1.4 else isopen=false script.Parent.DoorClose:Play()doormotor.Motor.DesiredAngle=0 end end)
----------------------------------------------------##
script.Parent.ClickDetector.MouseClick:Connect(function()
	if isopen == false then
		isopen = true
		script.Parent.DoorOpen:Play()
		doormotor.Motor.DesiredAngle = -1.4
	else
		isopen = false
		script.Parent.DoorClose:Play()
		doormotor.Motor.DesiredAngle = 0
	end
end)
