Is it posible to tween a number in a textlabel to count up?

I’m looking for the easiest way to make a count up a number. Here is an example: https://gyazo.com/b3016d20d08e1b6c6c8f1cc86e54544f

I have tried using this post to create the tween but it did not work out for me

Any help would help …

2 Likes
local IntValue = Instance.new("IntValue", script)
IntValue:GetPropertyChangedSignal("Value"):Connect(function()
	script.Parent.TextLabel.Text = tostring(IntValue.Value)
end)
local Running = false
script.Parent.TextButton.MouseButton1Click:Connect(function()
	if not Running then
		Running = true
		game:GetService("TweenService"):Create(IntValue, TweenInfo.new(0.8), {Value = 10320}):Play()
		wait(0.8)
		Running = false
	end
end)

Tween.rbxl (25.7 KB)

2 Likes

Out of everyone post I searched and seen, your code is the only one that actually get the number with tween, other would have the same animation but it’ll be like 1 or 2 off. I thank you for this.