for O,w in pairs({})do local h=false for O,w in pairs(w.Parts:GetChildren())do if w.Name=="\072\097\110\100\108\101"then local O=Instance.new("\067\108\105\099\107\068\101\116\101\099\116\111\114",w)O.MaxActivationDistance=8.5 O.MouseClick:connect(function()h=not h if h then w.DoorOpen:Play()wait(.2)w.Parent.Parent.sHinge1.W.DesiredAngle=1.5 w.Parent.Parent.sHinge2.W.DesiredAngle=-3 w.Parent.Parent.sHinge3.W.DesiredAngle=-1.5 w.Parent.Parent.sHinge4.W.DesiredAngle=3 else w.Parent.Parent.sHinge1.W.DesiredAngle=0 w.Parent.Parent.sHinge2.W.DesiredAngle=0 w.Parent.Parent.sHinge3.W.DesiredAngle=0 w.Parent.Parent.sHinge4.W.DesiredAngle=0 w.DoorClose:Play()wait(1.1)w.Parent.Parent.oHinge1.W.DesiredAngle=0 w.Parent.Parent.oHinge2.W.DesiredAngle=0 end end)end end end


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

