local function t()local t=TweenInfo.new(.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local f=textLabel.Text local h=tonumber(numValue.Value)local x=h local g=string.match(tostring(h),"\037\046\040\037\100\043\041")if g then x=math.floor(h)end for t=1,10^(#tostring(x)-1),1 do local f=h-h%t if f==x then textLabel.Text=commaSeparateNumber(tostring(f))..(g and"\046"..g or"")break else textLabel.Text=commaSeparateNumber(tostring(f))..(g and"\046"..g or"")wait(.05)end end wait(.5)textLabel.Text=f end updateTextLabel()

local function animateTextLabel()
	local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	local startingText = textLabel.Text
	local currentValue = tonumber(numValue.Value)
	local targetValue = currentValue
	local decimal = string.match(tostring(currentValue), "%.(%d+)")
	if decimal then
		targetValue = math.floor(currentValue)
	end
	for i = 1, 10^(#tostring(targetValue)-1) do
		local newValue = currentValue - (currentValue % i)
		if newValue == targetValue then
			textLabel.Text = commaSeparateNumber(tostring(newValue)) .. (decimal and "." .. decimal or "")
			break
		else
			textLabel.Text = commaSeparateNumber(tostring(newValue)) .. (decimal and "." .. decimal or "")
			wait(0.05)
		end
	end
	wait(0.5)
	textLabel.Text = startingText
end

updateTextLabel() -- atualiza o TextLabel ao iniciar o jogo
