Hey, so I really remember reading up on there being some event or function I could use to determine once a tween created with TweenService has completed.
Is there any way to do this?? Thanks.
Hey, so I really remember reading up on there being some event or function I could use to determine once a tween created with TweenService has completed.
Is there any way to do this?? Thanks.
That is Tween.Completed
local t = game:GetService("TweenService"):Create(datahere)
t.Completed:Connect(function()
end)
I usually create a function to play and :Wait
on Completed:
function playSync(tween)
tween:Play()
tween.Completed:Wait()
end
It saves writing it a billion times.
btw you have to do
local tween = ts:Create(…)
tween:Play()
tween.Completed:Wait()
not
local tween = ts:Create(…):Play()
tween.Completed:Wait()
why did you necro a 5 year old thread to provide a correction to an error that doesn’t even exist in said function
btw you have to do
local tween = ts:Create(…)
tween:Play()
tween.Completed:Wait()
not
local tween = ts:Create(…):Play()
tween.Completed:Wait()
*edited for clarity
Thanks,
Contributed 0 visits.