-- Decompiled with the Synapse X Luau decompiler.


local u1 = nil;
coroutine.wrap(function()
	u1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
end)();
return function(p1, p2, ...)
	local v1, v2 = ...;
	local v3 = v2 or Color3.fromRGB(111, 111, 111);
	p1.title.Text = v1;
	if v3 == "Shadow" then
		task.defer(function()
			while not p1.Parent do
				u1.RenderStepped();			
			end;
			local v4 = os.clock();
			while p1 and p1.Parent do
				p1.title.Background.BackgroundColor3 = Color3.fromRGB(57, 8, 70):Lerp(Color3.fromRGB(192, 89, 255), math.sin((os.clock() - v4) * 5) / 2 + 0.5);
				u1.RenderStepped();			
			end;
		end);
		return;
	end;
	if v3 == "Divine" then
		task.defer(function()
			while not p1.Parent do
				u1.RenderStepped();			
			end;
			u1.GFX.Rainbow(p1.title.Background, "BackgroundColor3", 3);
		end);
		return;
	end;
	if v3 == "Shiny" then
		task.defer(function()
			while not p1.Parent do
				u1.RenderStepped();			
			end;
			local v5 = os.clock();
			while p1 and p1.Parent do
				p1.title.Background.BackgroundColor3 = Color3.fromRGB(255, 253, 184):Lerp(Color3.fromRGB(255, 213, 61), math.sin((os.clock() - v5) * 4) / 2 + 0.5);
				u1.RenderStepped();			
			end;
		end);
		return;
	end;
	p1.title.Background.BackgroundColor3 = v3;
end;
