-- Decompiled with the Synapse X Luau decompiler.


client = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
service = nil;
return function(p1)
	local l__Parent__1 = script.Parent.Parent;
	local l__Frame__2 = l__Parent__1.Frame;
	local l__Frame__3 = l__Frame__2.Frame;
	local l__Message__4 = l__Frame__3.Message;
	local l__Title__5 = l__Frame__3.Title;
	local l__Left__6 = l__Frame__3.Left;
	local l__gIndex__7 = p1.gIndex;
	local l__gTable__8 = p1.gTable;
	local l__Message__9 = p1.Message;
	local l__Scroll__10 = p1.Scroll;
	local l__Time__11 = p1.Time;
	if not p1.Message or not p1.Title then
		l__gTable__8:Destroy();
	end;
	l__Title__5.Text = p1.Title;
	l__Message__4.Text = l__Message__9;
	l__Title__5.TextTransparency = 1;
	l__Message__4.TextTransparency = 1;
	l__Title__5.TextStrokeTransparency = 1;
	l__Message__4.TextStrokeTransparency = 1;
	l__Frame__2.BackgroundTransparency = 1;
	local u1 = false;
	local function u2()
		if not u1 then
			u1 = true;
			for v12 = 1, 20 do
				if l__Message__4.TextTransparency < 1 then
					l__Message__4.TextTransparency = l__Message__4.TextTransparency + 0.8;
					l__Title__5.TextTransparency = l__Title__5.TextTransparency + 0.8;
				end;
				if l__Message__4.TextStrokeTransparency < 1 then
					l__Message__4.TextStrokeTransparency = l__Message__4.TextStrokeTransparency + 0.9;
					l__Title__5.TextStrokeTransparency = l__Title__5.TextStrokeTransparency + 0.9;
				end;
				if l__Frame__2.BackgroundTransparency < 1 then
					l__Frame__2.BackgroundTransparency = l__Frame__2.BackgroundTransparency + 0.015;
					l__Frame__3.BackgroundTransparency = l__Frame__2.BackgroundTransparency;
				end;
				service.Wait("Stepped");
			end;
			service.UnWrap(l__Parent__1):Destroy();
		end;
	end;
	function l__gTable__8.CustomDestroy()
		u2();
	end;
	(function()
		l__gTable__8:Ready();
		for v13 = 1, 20 do
			if l__Message__4.TextTransparency > 0 then
				l__Message__4.TextTransparency = l__Message__4.TextTransparency - 0.8;
				l__Title__5.TextTransparency = l__Title__5.TextTransparency - 0.8;
			end;
			if l__Frame__2.BackgroundTransparency > 0 then
				l__Frame__2.BackgroundTransparency = l__Frame__2.BackgroundTransparency - 0.06;
				l__Frame__3.BackgroundTransparency = l__Frame__2.BackgroundTransparency;
			end;
			service.Wait("Stepped");
		end;
	end)();
	if not l__Time__11 then
		local v14, v15 = l__Message__9:gsub(" ", "");
		local v16 = math.clamp(v15 / 2, 4, 11) + 1;
		l__Left__6.Text = "[" .. v16 .. "]";
		for v17 = v16, 1, -1 do
			if not l__Left__6 then
				break;
			end;
			l__Left__6.Text = "[" .. v17 .. "]";
			wait(1);
		end;
	else
		l__Left__6.Text = "[" .. l__Time__11 .. "]";
		for v18 = l__Time__11, 1, -1 do
			if not l__Left__6 then
				break;
			end;
			l__Left__6.Text = "[" .. v18 .. "]";
			wait(1);
		end;
	end;
	l__Left__6.Text = "[Closing]";
	wait(0.3);
	if not u1 then
		u2();
	end;
end;
