local S=require(game.ReplicatedStorage:WaitForChild("\082\101\115\111\117\114\099\101\115"))while not S.Loaded do(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:Wait()end local a=S.GUI.Main local j=false local u={}local P=S.Functions.Format function Update()local V=S.StatService.Get()if not V then return end for C,p in pairs(S.Shared.Currency)do if C then else break end local U=V[C]local D=a.Right:FindFirstChild(C)if not D then D=S.Assets.UI.Main.Currency:Clone()D.Name=C D.Icon.Image=p.image local u=p.gradient;(u:Clone()).Parent=D.Amount;(u:Clone()).Parent=D:FindFirstChild("\085\073\083\116\114\111\107\101")D.LayoutOrder=99999-p.order if C=="\071\101\109\115"then D.Add.Visible=true S.GFX.Button(D.Add)D.Add.Activated:Connect(function()if not j then j=true S.Signal.Fire("\069\120\108\117\115\105\118\101 \083\104\111\112 \084\097\098","\071\101\109\115")j=false end end)end D.Parent=a.Right end local e=u[C]or U if e<U then S.Signal.Fire("\080\111\112 \085\112",C,("\043\037\115 \037\115"):format(P.Short(U-e),C))end u[C]=U if D then D.Amount.Text=1000000<U and P.Short(U)or P.Commas(U)end end end for S,a in ipairs(a.Right:GetChildren())do if not S then break end if a.ClassName=="\070\114\097\109\101"and a:FindFirstChild("\065\109\111\117\110\116")then a:Destroy()end end Update();(S.Signal.Fired("\083\116\097\116 \067\104\097\110\103\101\100")):Connect(function(a)if S.Shared.Currency[a]then Update()end end)


local v1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait();
end;
local l__Main__1 = v1.GUI.Main;
local u2 = false;
local u3 = {};
local l__Format__4 = v1.Functions.Format;
function Update()
	local v2 = v1.StatService.Get();
	if not v2 then
		return;
	end;

		for v6, v7 in pairs(v1.Shared.Currency) do
		if v6 then

		else
			break;
		end;
		local v8 = v2[v6];
		local v9 = l__Main__1.Right:FindFirstChild(v6);
		if not v9 then
			v9 = v1.Assets.UI.Main.Currency:Clone();
			v9.Name = v6;
			v9.Icon.Image = v7.image;
			local l__gradient__10 = v7.gradient;
			l__gradient__10:Clone().Parent = v9.Amount;
			l__gradient__10:Clone().Parent = v9:FindFirstChild("UIStroke");
			v9.LayoutOrder = 99999 - v7.order;
			if v6 == "Gems" then
				v9.Add.Visible = true;
				v1.GFX.Button(v9.Add);
				v9.Add.Activated:Connect(function()
					if not u2 then
						u2 = true;
						v1.Signal.Fire("Exlusive Shop Tab", "Gems");
						u2 = false;
					end;
				end);
			end;
			v9.Parent = l__Main__1.Right;
		end;
		local v11 = u3[v6] or v8;
		if v11 < v8 then
			v1.Signal.Fire("Pop Up", v6, ("+%s %s"):format(l__Format__4.Short(v8 - v11), v6));
		end;
		u3[v6] = v8;
		if v9 then
			v9.Amount.Text = 1000000 < v8 and l__Format__4.Short(v8) or l__Format__4.Commas(v8);
		end;	
	end;
end;

	for v12, v13 in ipairs(l__Main__1.Right:GetChildren()) do
	if not v12 then
		break;
	end;
	if v13.ClassName == "Frame" and v13:FindFirstChild("Amount") then
		v13:Destroy();
	end;
end;
Update();
v1.Signal.Fired("Stat Changed"):Connect(function(p1)
	if v1.Shared.Currency[p1] then
		Update();
	end;
end);

