Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can anyone teach me how to use TweenStatus?

I've been trying to learn tween status but there is no example I could use. Could anyone give me an example of it? Thanks in advanced!

1 answer

✓ Accepted answer

TweenStatus is an Enum that tells you whether a tween was completed or cancelled because another tween overwrote it. It's only used for GUI tweening.

local gui = ...

local function tweenCallback(tweenStatus)
	if tweenStatus == Enum.TweenStatus.Canceled then
		print("tween was cancelled :(")
	elseif tweenStatus == Enum.TweenStatus.Completed then
		print("tween finished :)")
	end
end

gui:TweenSize(_, _, _, _, _, tweenCallback) --> When the tween stops, it'll call tweenCallback with a TweenStatus

This discussion is preserved as it was. New answers, comments, and votes are closed.