Hii scripters, im an experienced scripter and I was wondering what would be the best way to tween a number, and I'm quite surprised to see that this is a topic that few developers are familiar with because we use tweening alot for our game but we've never thought of doing it on numbers.
I know that it's possible by creating a NumberValue instance and tween the value inside, but I don't like dealing with BaseValue Instances, I thought of making a function creates a numbervalue instance, tweens it and return the value, and then delete it after the tweening is completed.
TweenNumber(value,duration,function(v)
number = v
end)```
But imo, that seems kind of unoptimized if we compare this to modules that reproduces this mathematically, thing is I searched it up on Google and couldn't find anything regarding it.
TL;DR: Title.