local t=game.Players.LocalPlayer local K=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local s=game:GetService("\084\101\120\116\083\101\114\118\105\099\101")local o=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\067\108\105\101\110\116\077\111\100\117\108\101\115")):WaitForChild("\078\117\109\098\101\114\067\111\110\118\101\114\116"))local a=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\067\108\105\101\110\116\077\111\100\117\108\101\115")):WaitForChild("\071\101\116\080\108\097\116\102\111\114\109"))if(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\071\097\109\101\068\097\116\097")):WaitForChild("\073\110\071\097\109\101")).Value==false then(script.Parent:WaitForChild("\085\073\080\097\100\100\105\110\103")).PaddingRight=UDim.new(0,72)end for t,j in pairs((script:WaitForChild("\083\116\097\116\077\111\100\117\108\101\115")):GetChildren())do local q=Instance.new("\073\110\116\086\097\108\117\101")q.Name=j.Name.."\086\097\108"q.Parent=j q.Value=0 local p=require(j)local g=0 local J=script.Parent:FindFirstChild(j.Name)local function I(t)if t~=nil then t=tonumber(t)else t=p.value end if type(t)~="\110\117\109\098\101\114"then return end if a()=="\099\111\110\115\111\108\101"then script.Parent.UIScale.Scale=1.5 end if not g then return end g=t J.Size=UDim2.new(0,(s:GetTextSize(tostring(t),40,"\079\115\119\097\108\100",Vector2.new(999,999))).X,1.5,0)J.TextSize=40 if g<t then J.TextColor3=J:GetAttribute("\070\097\100\101\073\110\099\114\101\097\115\101")J.SoundIncrease:Play()elseif t<g then J.TextColor3=J:GetAttribute("\070\097\100\101\068\101\099\114\101\097\115\101")J.SoundDecrease:Play()if j.Name=="\066\111\111\115\116\115"then script.Parent.BoostActive.Visible=true J.Visible=false end end;(K:Create(J,TweenInfo.new(.7,Enum.EasingStyle.Quart,Enum.EasingDirection.InOut),{Size=UDim2.new(0,(s:GetTextSize(tostring(t),30,"\079\115\119\097\108\100",Vector2.new(999,999))).X,1,0),TextSize=30;TextColor3=Color3.new(1,1,1)})):Play();(K:Create(J,TweenInfo.new(.7,Enum.EasingStyle.Quart,Enum.EasingDirection.InOut),{TextColor3=Color3.new(1,1,1)})):Play();(K:Create(q,TweenInfo.new(.4,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Value=tonumber(t)})):Play()if t<=0 then task.delay(.4,function()J.Visible=false end)else J.Visible=true task.delay(.41,function()J.Visible=true end)end if j.Name=="\066\111\111\115\116\115"and t<g then script.Parent.BoostActive.Visible=true task.delay(.5,function()J.Visible=false end)end end q.Changed:Connect(function(t)J.Text=o(t)end)if j.Name=="\071\111\108\100"then local t=tick();(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\066\114\105\099\107\115")):WaitForChild("\071\101\116\071\111\108\100")).OnClientEvent:Connect(function(s)t=tick()+.5 local o,a=workspace.CurrentCamera:WorldToScreenPoint(s)local j=script.Parent.Parent.Gold:Clone()j.Visible=true j.Name="\071\111\108\100\076\105\118\101"j.Position=UDim2.new(0,o.X,0,o.Y)j.Parent=script.Parent.Parent game.Debris:AddItem(j,.5)J.Visible=true local q=J.Icon.AbsolutePosition local p=J.Icon.AbsoluteSize;(K:Create(j,TweenInfo.new(.5,Enum.EasingStyle.Quart,Enum.EasingDirection.In),{Size=UDim2.new(0,p.X,0,p.Y),Position=UDim2.new(0,q.X+p.X/2,0,q.Y+p.Y/2)})):Play()end)p.event.Event:Connect(function(K)task.wait(.2)task.wait(math.max(t-tick(),0))if t~=t then return end I()end)else p.event.Event:Connect(I)end I()end


local l__LocalPlayer__1 = game.Players.LocalPlayer;
local l__TweenService__2 = game:GetService("TweenService");
local l__TextService__3 = game:GetService("TextService");
local v4 = require(game:GetService("ReplicatedStorage"):WaitForChild("ClientModules"):WaitForChild("NumberConvert"));
local v5 = require(game:GetService("ReplicatedStorage"):WaitForChild("ClientModules"):WaitForChild("GetPlatform"));
if game:GetService("ReplicatedStorage"):WaitForChild("GameData"):WaitForChild("InGame").Value == false then
	script.Parent:WaitForChild("UIPadding").PaddingRight = UDim.new(0, 72);
end;
for v6, v7 in pairs(script:WaitForChild("StatModules"):GetChildren()) do
	local v8 = Instance.new("IntValue");
	v8.Name = v7.Name .. "Val";
	v8.Parent = v7;
	v8.Value = 0;
	local u1 = require(v7);
	local u2 = 0;
	local u3 = script.Parent:FindFirstChild(v7.Name);
	local function v9(p1)
		if p1 ~= nil then
			p1 = tonumber(p1);
		else
			p1 = u1.value;
		end;
		if type(p1) ~= "number" then
			return;
		end;
		if v5() == "console" then
			script.Parent.UIScale.Scale = 1.5;
		end;
		if not u2 then
			return;
		end;
		u2 = p1;
		u3.Size = UDim2.new(0, l__TextService__3:GetTextSize(tostring(p1), 40, "Oswald", Vector2.new(999, 999)).X, 1.5, 0);
		u3.TextSize = 40;
		if u2 < p1 then
			u3.TextColor3 = u3:GetAttribute("FadeIncrease");
			u3.SoundIncrease:Play();
		elseif p1 < u2 then
			u3.TextColor3 = u3:GetAttribute("FadeDecrease");
			u3.SoundDecrease:Play();
			if v7.Name == "Boosts" then
				script.Parent.BoostActive.Visible = true;
				u3.Visible = false;
			end;
		end;
		l__TweenService__2:Create(u3, TweenInfo.new(0.7, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
			Size = UDim2.new(0, l__TextService__3:GetTextSize(tostring(p1), 30, "Oswald", Vector2.new(999, 999)).X, 1, 0), 
			TextSize = 30, 
			TextColor3 = Color3.new(1, 1, 1)
		}):Play();
		l__TweenService__2:Create(u3, TweenInfo.new(0.7, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
			TextColor3 = Color3.new(1, 1, 1)
		}):Play();
		l__TweenService__2:Create(v8, TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
			Value = tonumber(p1)
		}):Play();
		if p1 <= 0 then
			task.delay(0.4, function()
				u3.Visible = false;
			end);
		else
			u3.Visible = true;
			task.delay(0.41, function()
				u3.Visible = true;
			end);
		end;
		if v7.Name == "Boosts" and p1 < u2 then
			script.Parent.BoostActive.Visible = true;
			task.delay(0.5, function()
				u3.Visible = false;
			end);
		end;
	end;
	v8.Changed:Connect(function(p2)
		u3.Text = v4(p2);
	end);
	if v7.Name == "Gold" then
		local u4 = tick();
		game:GetService("ReplicatedStorage"):WaitForChild("Bricks"):WaitForChild("GetGold").OnClientEvent:Connect(function(p3)
			u4 = tick() + 0.5;
			local v10, v11 = workspace.CurrentCamera:WorldToScreenPoint(p3);
			local v12 = script.Parent.Parent.Gold:Clone();
			v12.Visible = true;
			v12.Name = "GoldLive";
			v12.Position = UDim2.new(0, v10.X, 0, v10.Y);
			v12.Parent = script.Parent.Parent;
			game.Debris:AddItem(v12, 0.5);
			u3.Visible = true;
			local l__AbsolutePosition__13 = u3.Icon.AbsolutePosition;
			local l__AbsoluteSize__14 = u3.Icon.AbsoluteSize;
			l__TweenService__2:Create(v12, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
				Size = UDim2.new(0, l__AbsoluteSize__14.X, 0, l__AbsoluteSize__14.Y), 
				Position = UDim2.new(0, l__AbsolutePosition__13.X + l__AbsoluteSize__14.X / 2, 0, l__AbsolutePosition__13.Y + l__AbsoluteSize__14.Y / 2)
			}):Play();
		end);
		u1.event.Event:Connect(function(p4)
			task.wait(0.2);
			task.wait((math.max(u4 - tick(), 0)));
			if u4 ~= u4 then
				return;
			end;
			v9();
		end);
	else
		u1.event.Event:Connect(v9);
	end;
	v9();
end;
