I’m trying to use TweenService to be able to simply tween a value, a number value, not a property.
For example, I would try just tweening this number value, supposedly like this:
local value = 0
TS:Create(value,TweenInfo.new(5),100):Play()
I’m aware you can create an IntValue and tween the property, but I don’t essentially want to do that. I just want to tween a direct value only. How would I do that?
If you have any suggestions or solutions, please comment them down. Thank you.
Why exactly? Using an object value should do the trick. Anyways, you could do something like this
local TweenService = game:GetService("TweenService")
local NumberValue = Instance.new("NumberValue")
local Number = 0
local Tween = TweenService:Create(NumberValue, TweenInfo.new(5), {Value = 100})
Tween:Play()
NumberValue:GetPropertyChangedSignal("Value"):Connect(function()
Number = NumberValue.Value
end)