Skip to content

Tween

One property animation, made by TweenService.create.

A tween reads the starting values the first time it plays, then moves each property in goals toward its end value every step, after physics. If its instance is destroyed, the tween cancels itself.

Type: boolean · Access: read-only

True while the tween is playing.

play(): void

Starts the tween, or resumes it after pause(). Does nothing while it’s already playing.

pause(): void

Stops the tween where it is; play() resumes it.

cancel(): void

Stops the tween and resets its progress. The properties keep the values they have now.

Arguments: none

Fires when the tween finishes its last repeat. pause() and cancel() don’t fire it, and with a repeatCount of -1 it never fires.