--functions--

function coverdown()
	covergui.TextLabel:TweenPosition(UDim2.new(0, 0, 1.36, 0), "Out", "Sine", 1, true)
end

function coverup()
	covergui.TextLabel:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 1, true)
end

function menuappear()
	for _,v in pairs(maingui:GetChildren()) do
		if v:IsA("TextButton") then
			v.Visible = true
		end
	end
end

function menudisappear()
	for _,v in pairs(maingui:GetChildren()) do
		if v:IsA("TextButton") then
			v.Visible = false
		end
	end
end

function disappearall()
	for _,v in pairs(maingui:GetChildren()) do
		if v:IsA("Frame") then
			for _,a in pairs(v:GetChildren()) do
				if a:IsA("TextButton") then
					a.Visible = false
				end
			end	
		end
	end
end
