Is it possible to Tween a Number in a TextLabel to Count Up?

Here’s an example:
https://gyazo.com/b3016d20d08e1b6c6c8f1cc86e54544f

My script:

local plr = script.Parent.Parent.Parent.Parent.Parent

function comma_value(amount)
	local formatted = amount
	while true do  
		formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
		if (k==0) then
			break
		end
	end
	return formatted
end

while wait() do
	script.Parent.Text = comma_value(plr.leaderstats.Coins.Value)
end

Maybe this can help

Or this that uses your video as reference

local TweenService = game:GetService("TweenService")

function AnimateNumber(n)
	TweenService:Create(script.TweenNumber, TweenInfo.new(.8), {Value = n}):Play()
end

script.TweenNumber:GetPropertyChangedSignal("Value"):Connect(function(l)
	AnimateNumber(script.TweenNumber.Value)
	script.Parent.Text = script.TweenNumber.Value
end)

This won’t work… it doesn’t tween it