--Script (DO NOT TOUCH)

script.Parent.Event:connect(function()
	if debounce == false and script.Parent.Open.Value == false then
		debounce = true
		print("going up")
	doora.PrimPart.Alarm:play()
	wait(4)
	doora.PrimPart.Open:play()
	open()
	for i = 1,50 do
		doora.PrimPart.Alarm.Volume = doora.PrimPart.Alarm.Volume - .06 
		wait()
	end
	doora.PrimPart.Alarm.Volume = 3
	doora.PrimPart.Alarm:stop()
	script.Parent.Open.Value = true
	debounce = false
	elseif debounce == false and script.Parent.Open.Value == true then
		debounce = true
	doora.PrimPart.Alarm:play()
	wait(4)
	doora.PrimPart.Close:play()
	close()
	for i = 1,50 do
		doora.PrimPart.Alarm.Volume = doora.PrimPart.Alarm.Volume - .06 
		wait()
	end
	doora.PrimPart.Alarm.Volume = 3
	doora.PrimPart.Alarm:stop()
	script.Parent.Open.Value = false
	debounce = false
	end
end)