2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

TweenInfo

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

NameType / ReturnsDescription
TweenInfo.newCreates a new TweenInfo from the provided parameters.

TweenInfo.new

Creates a new TweenInfo from the provided parameters.

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

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

TweenInfo.EasingDirection

The direction in which the tween executes.

FieldValue
typeEasingDirection

TweenInfo.Time

Duration of the tween, in seconds.

FieldValue
typenumber

TweenInfo.DelayTime

Time of delay until the tween begins, in seconds.

FieldValue
typenumber

TweenInfo.RepeatCount

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

FieldValue
typenumber

TweenInfo.EasingStyle

The style in which the tween executes.

FieldValue
typeEasingStyle

TweenInfo.Reverses

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

FieldValue
typebool