TweenInfo

Show Deprecated

The TweenInfo data type stores parameters for TweenService:Create() to specify the behavior of the tween. The properties of a TweenInfo cannot be written to after its creation.

Summary

Constructors

Properties

Constructors

new

Creates a new TweenInfo from the provided parameters.

Parameters

time: number

Duration for the tween, in seconds.

Default Value: 1
easingStyle: Enum.EasingStyle

Easing style for the tween.

Default Value: Enum.EasingStyle.Quad
easingDirection: Enum.EasingDirection

The direction in which the tween executes.

Default Value: Enum.EasingDirection.Out
repeatCount: number

Number of times the tween should repeat. -1 repeats indefinitely.

Default Value: 0
reverses: bool

Whether the tween should reverse to the starting values once it reaches its targets.

Default Value: false
delayTime: number

Time of delay until the tween begins, in seconds.

Default Value: 0

Properties

EasingDirection

The direction in which the tween executes.

Time

Duration of the tween, in seconds.

DelayTime

Time of delay until the tween begins, in seconds.

RepeatCount

Number of times the tween repeats. -1 indicates indefinite repetition.

EasingStyle

The style in which the tween executes.

Reverses

Whether or not the tween interpolates in reverse tween once the initial tween completes.