local q=game.Players.LocalPlayer local r=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local w=game:GetService("\084\101\120\116\083\101\114\118\105\099\101")local B=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 E=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 q,v in pairs((script:WaitForChild("\083\116\097\116\077\111\100\117\108\101\115")):GetChildren())do local Z=Instance.new("\073\110\116\086\097\108\117\101")Z.Name=v.Name.."\086\097\108"Z.Parent=v Z.Value=0 local x=require(v)local H=0 local W=script.Parent:FindFirstChild(v.Name)local function U(q)if q~=nil then q=tonumber(q)else q=x.value end if type(q)~="\110\117\109\098\101\114"then return end if E()=="\099\111\110\115\111\108\101"then script.Parent.UIScale.Scale=1.5 end if not H then return end H=q W.Size=UDim2.new(0,(w:GetTextSize(tostring(q),40,"\079\115\119\097\108\100",Vector2.new(999,999))).X,1.5,0)W.TextSize=40 if H<q then W.TextColor3=W:GetAttribute("\070\097\100\101\073\110\099\114\101\097\115\101")W.SoundIncrease:Play()elseif q<H then W.TextColor3=W:GetAttribute("\070\097\100\101\068\101\099\114\101\097\115\101")W.SoundDecrease:Play()if v.Name=="\066\111\111\115\116\115"then script.Parent.BoostActive.Visible=true W.Visible=false end end;(r:Create(W,TweenInfo.new(.7,Enum.EasingStyle.Quart,Enum.EasingDirection.InOut),{Size=UDim2.new(0,(w:GetTextSize(tostring(q),30,"\079\115\119\097\108\100",Vector2.new(999,999))).X,1,0),TextSize=30,TextColor3=Color3.new(1,1,1)})):Play();(r:Create(W,TweenInfo.new(.7,Enum.EasingStyle.Quart,Enum.EasingDirection.InOut),{TextColor3=Color3.new(1,1,1)})):Play();(r:Create(Z,TweenInfo.new(.4,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Value=tonumber(q)})):Play()if q<=0 then task.delay(.4,function()W.Visible=false end)else W.Visible=true task.delay(.41,function()W.Visible=true end)end if v.Name=="\066\111\111\115\116\115"and q<H then script.Parent.BoostActive.Visible=true task.delay(.5,function()W.Visible=false end)end end Z.Changed:Connect(function(q)W.Text=B(q)end)if v.Name=="\071\111\108\100"then local q=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(w)q=tick()+.5 local B,E=workspace.CurrentCamera:WorldToScreenPoint(w)local v=script.Parent.Parent.Gold:Clone()v.Visible=true v.Name="\071\111\108\100\076\105\118\101"v.Position=UDim2.new(0,B.X,0,B.Y)v.Parent=script.Parent.Parent game.Debris:AddItem(v,.5)W.Visible=true local Z=W.Icon.AbsolutePosition local x=W.Icon.AbsoluteSize;(r:Create(v,TweenInfo.new(.5,Enum.EasingStyle.Quart,Enum.EasingDirection.In),{Size=UDim2.new(0,x.X,0,x.Y);Position=UDim2.new(0,Z.X+x.X/2,0,Z.Y+x.Y/2)})):Play()end)x.event.Event:Connect(function(r)task.wait(.2)task.wait(math.max(q-tick(),0))if q~=q then return end U()end)else x.event.Event:Connect(U)end U()end
-- Decompiled with the Synapse X Luau decompiler.

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
