--Rears--


for _,v in pairs({
	

	
	
}) do

	local open1=false
	for _,a in pairs(v.Parts:GetChildren()) do
		if a.Name=="Handle" then
			local CL = Instance.new("ClickDetector",a)
			CL.MaxActivationDistance = 8.5
			CL.MouseClick:connect(function()
				open1 = not open1
				if open1 then
					a.DoorOpen:Play()
					wait(0.2)
					a.Parent.Parent.sHinge1.W.DesiredAngle = 1.5
					a.Parent.Parent.sHinge2.W.DesiredAngle = -3
					a.Parent.Parent.sHinge3.W.DesiredAngle = -1.5
					a.Parent.Parent.sHinge4.W.DesiredAngle = 3
				else
					a.Parent.Parent.sHinge1.W.DesiredAngle = 0
					a.Parent.Parent.sHinge2.W.DesiredAngle = 0
					a.Parent.Parent.sHinge3.W.DesiredAngle = 0
					a.Parent.Parent.sHinge4.W.DesiredAngle = 0
					a.DoorClose:Play()
					wait(1.1)
					a.Parent.Parent.oHinge1.W.DesiredAngle = 0
					a.Parent.Parent.oHinge2.W.DesiredAngle = 0
				end
			end)
		end
	end
end

