script.Parent.Button1.ClickDetector.MouseClick:Connect(function()if DoorStatus=="\067\108\111\115\101\100"and Debounce==false then Debounce=true Door.Button1.Click:Play()DoorMain.Sound:Play()Open()wait(1)DoorStatus="\079\112\101\110\101\100"Debounce=false elseif DoorStatus=="\079\112\101\110\101\100"and Debounce==false then Debounce=true Door.Button1.Click:Play()DoorMain.Sound:Play()Close()wait(1)DoorStatus="\067\108\111\115\101\100"Debounce=false end end)script.Parent.Button2.ClickDetector.MouseClick:Connect(function()if DoorStatus=="\067\108\111\115\101\100"and Debounce==false then Debounce=true Door.Button2.Click:Play()DoorMain.Sound:Play()Open()wait(1)DoorStatus="\079\112\101\110\101\100"Debounce=false elseif DoorStatus=="\079\112\101\110\101\100"and Debounce==false then Debounce=true Door.Button2.Click:Play()DoorMain.Sound:Play()Close()wait(1)DoorStatus="\067\108\111\115\101\100"Debounce=false end end)

script.Parent.Button1.ClickDetector.MouseClick:Connect(function()
	if DoorStatus == "Closed" and Debounce == false then
		Debounce = true
		Door.Button1.Click:Play()
		DoorMain.Sound:Play()
		Open()
		wait(1)
		DoorStatus = "Opened"
		Debounce = false
	elseif DoorStatus == "Opened" and Debounce == false then
		Debounce = true
		Door.Button1.Click:Play()
		DoorMain.Sound:Play()
		Close()
		wait(1)
		DoorStatus = "Closed"
		Debounce = false
	end
end)

script.Parent.Button2.ClickDetector.MouseClick:Connect(function()
	if DoorStatus == "Closed" and Debounce == false then
		Debounce = true
		Door.Button2.Click:Play()
		DoorMain.Sound:Play()
		Open()
		wait(1)
		DoorStatus = "Opened"
		Debounce = false
	elseif DoorStatus == "Opened" and Debounce == false then
		Debounce = true
		Door.Button2.Click:Play()
		DoorMain.Sound:Play()
		Close()
		wait(1)
		DoorStatus = "Closed"
		Debounce = false
	end
	end)
