local function t(t)if t:IsA("\070\114\097\109\101")then return"\066\097\099\107\103\114\111\117\110\100\084\114\097\110\115\112\097\114\101\110\099\121"elseif t:IsA("\084\101\120\116\076\097\098\101\108")then return"\084\101\120\116\084\114\097\110\115\112\097\114\101\110\099\121"elseif t:IsA("\073\109\097\103\101\076\097\098\101\108")then return"\073\109\097\103\101\084\114\097\110\115\112\097\114\101\110\099\121"end end local function l(l,q,N)for l,o in pairs(l)do local g=q if o:IsA("\070\114\097\109\101")and g<.35 then g=.35 end local S={[t(o)]=g};(main.tweenService:Create(o,TweenInfo.new(N),S)):Play()end wait(N)end local function q(t)return{{t.Bg};{t.Title;t.SubTitle;t.Pic};{t.Desc}}end

local function getTargetProp(item)
	if item:IsA("Frame") then
		return("BackgroundTransparency")
	elseif item:IsA("TextLabel") then
		return("TextTransparency")
	elseif item:IsA("ImageLabel") then
		return("ImageTransparency")
	end
end

local function displayMessages(items, targetTransparency, waitTime)
	for _, item in pairs(items) do
		local tt = targetTransparency
		if item:IsA("Frame") and tt < 0.35 then
			tt = 0.35
		end
		local props = {[getTargetProp(item)] = tt}
		main.tweenService:Create(item, TweenInfo.new(waitTime), props):Play()
	end
	wait(waitTime)
end

local function getMessageAppearOrder(message)
	return
		{
		{message.Bg};
		{message.Title, message.SubTitle, message.Pic};
		{message.Desc};
		};
end


