Roblox UtilitiesDevlHub Roblox Documentation

Data type

TweenInfo

Stores parameters for Tweens.

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.

Constructors 1#

newCreates a new TweenInfo from the provided parameters.

new(time: number = 1, easingStyle: EasingStyle = Enum.EasingStyle.Quad, easingDirection: EasingDirection = Enum.EasingDirection.Out, repeatCount: number = 0, reverses: bool = false, delayTime: number = 0)#

Creates a new TweenInfo from the provided parameters.

NameTypeDefaultDescription
timenumber1Duration for the tween, in seconds.
easingStyleEasingStyleEnum.EasingStyle.QuadEasing style for the tween.
easingDirectionEasingDirectionEnum.EasingDirection.OutThe direction in which the tween executes.
repeatCountnumber0Number of times the tween should repeat. -1 repeats indefinitely.
reversesboolfalseWhether the tween should reverse to the starting values once it reaches its targets.
delayTimenumber0Time of delay until the tween begins, in seconds.

Properties 6#

EasingDirectionEasingDirectionThe direction in which the tween executes.
TimenumberDuration of the tween, in seconds.
DelayTimenumberTime of delay until the tween begins, in seconds.
RepeatCountnumberNumber of times the tween repeats.
EasingStyleEasingStyleThe style in which the tween executes.
ReversesboolWhether or not the tween interpolates in reverse tween once the initial tween completes.

EasingDirection: EasingDirection#

The direction in which the tween executes.

Time: number#

Duration of the tween, in seconds.

DelayTime: number#

Time of delay until the tween begins, in seconds.

RepeatCount: number#

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

EasingStyle: EasingStyle#

The style in which the tween executes.

Reverses: bool#

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