local e=nil;(coroutine.wrap(function()e=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))end))()return function(u,R,...)local p,j=...local q=j or Color3.fromRGB(111,111,111)u.title.Text=p if q=="\083\104\097\100\111\119"then task.defer(function()while not u.Parent do e.RenderStepped()end local R=os.clock()while u and u.Parent do u.title.Background.BackgroundColor3=(Color3.fromRGB(57,8,70)):Lerp(Color3.fromRGB(192,89,255),math.sin((os.clock()-R)*5)/2+.5)e.RenderStepped()end end)return end if q=="\068\105\118\105\110\101"then task.defer(function()while not u.Parent do e.RenderStepped()end e.GFX.Rainbow(u.title.Background,"\066\097\099\107\103\114\111\117\110\100\067\111\108\111\114\051",3)end)return end if q=="\083\104\105\110\121"then task.defer(function()while not u.Parent do e.RenderStepped()end local R=os.clock()while u and u.Parent do u.title.Background.BackgroundColor3=(Color3.fromRGB(255,253,184)):Lerp(Color3.fromRGB(255,213,61),math.sin((os.clock()-R)*4)/2+.5)e.RenderStepped()end end)return end u.title.Background.BackgroundColor3=q end


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;
