Hello
How can I fast forward / immediately complete a Tween which is being played?
Thanks
Hello
How can I fast forward / immediately complete a Tween which is being played?
Thanks
I think Tween:Cancel() may immediately fast forward it to its end state but may also just actually reset, have a try
Just play another faster tween and cancel the old one:
local TweenService = game:GetService("TweenService")
local Part = game.Workspace.Part
local tinfo1 = TweenInfo.new(10)
local t1 = TweenService:Create(Part, tinfo1 , { Transparency = 1 })
t1:Play()
--To immidiatly finnish the tween in 0.5 sec for exemple:
if t1 and t1.PlaybackState ~= Enum.PlaybackState.Completed then
t1:Cancel()
end
local tinfo2 = TweenInfo.new(0.5)
local t2 = TweenService:Create(Part, tinfo2 , { Transparency = 1 })
t2:Play()