--local Titel = script.Parent

local button = script.Parent

local TitelFrame = script.Parent.Parent.TitelFrame

local function openFrame()
	TitelFrame.Visible = true
	print('Showing Frame')
end

local function closeFrame()
	TitelFrame.Visible = false
	print('Hiding Frame')
end

button.activated:Connect(function()
	if TitelFrame.Visible then
		closeFrame()
	else
		openFrame()
	end
end)

