local TweenService = game:GetService("TweenService")
function AnimateNumber()
local n = game.Players.LocalPlayer.leaderstats.Worms
TweenService:Create(script.Parent.Displayer.TextLabel, TweenInfo.new(0.5), {Text = n.Value}):Play()
end
game.Players.LocalPlayer.leaderstats.Worms.Changed:Connect(function()
AnimateNumber()
end)
I dont think tweens work with text. You’d need to have a 2nd fake value thats used just for the text, and whenever the Worms changes, increase the fake value by 1 or however much you want to go up until its the same, like
if you tween 1 into 2 yea it is a fraction while tweening
but my point was that the starting number is probably not a fraction and instead an integer
I thought you meant to tween that even tho you wouldn’t need to
I misread that and now I know you mean to floor the number while it is being tweened, so to answer your question I have tweened a number before and I really only misread your replys
honestly tho they shouldn’t be using tweening for a counting effect