script.Parent.Event:connect(function()if debounce==false and script.Parent.Open.Value==false then debounce=true print("\103\111\105\110\103 \117\112")doora.PrimPart.Alarm:play()wait(4)doora.PrimPart.Open:play()open()for Y=1,50,1 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 Y=1,50,1 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)
--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 - 0.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 - 0.06
			wait()
		end
		doora.PrimPart.Alarm.Volume = 3
		doora.PrimPart.Alarm:stop()
		script.Parent.Open.Value = false
		debounce = false
	end
end)
