--SETTINGS

local TITLE1 = "Close Door"
local TITLE2 = "Open Door"
local IsOpen = false


click.Triggered:Connect(function()
	if IsOpen == false then
		IsOpen = true
		click.ActionText = TITLE1
		open_mus:Play()
		base2.Window.Transparency = 0.6
		base2.Visual.Transparency = 0
		base1.Window.Transparency = 1
		base1.Visual.Transparency = 1
		base2.CanCollide = true
		base1.CanCollide = false
	else
		IsOpen = false
		click.ActionText = TITLE2
		close_mus:Play()
		base2.Window.Transparency = 1
		base2.Visual.Transparency = 1
		base1.Window.Transparency = 0.6
		base1.Visual.Transparency = 0
		base2.CanCollide = false
		base1.CanCollide = true
	end
end)

