Is there a way to determine when a tween has completed?

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.

7 Likes

https://developer.roblox.com/en-us/api-reference/event/TweenBase/Completed

5 Likes

That is Tween.Completed

local t = game:GetService("TweenService"):Create(datahere)

t.Completed:Connect(function()

end)
28 Likes

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.

31 Likes