Skip to content

TweenInfo

Supported Datatype

Stores parameters for Tweens.

Description

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

new Supported Creates a new TweenInfo from the provided parameters.
TweenInfo.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. This constructor raises an error if easingStyle is EasingStyle.Bezier or EasingStyle.Spring.

Properties

EasingDirection Supported The direction in which the tween executes.
TweenInfo.EasingDirection()

The direction in which the tween executes.

Time Supported Duration of the tween, in seconds.
TweenInfo.Time()

Duration of the tween, in seconds.

DelayTime Supported Time of delay until the tween begins, in seconds.
TweenInfo.DelayTime()

Time of delay until the tween begins, in seconds.

RepeatCount Supported Number of times the tween repeats.
TweenInfo.RepeatCount()

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

EasingStyle Supported The style in which the tween executes.
TweenInfo.EasingStyle()

The style in which the tween executes.

Reverses Supported Whether or not the tween interpolates in reverse tween once the initial tween completes.
TweenInfo.Reverses()

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

Nova binding inventory

Library Members
new DelayTime, EasingDirection, EasingStyle, RepeatCount, Reverses, Time

Roblox reference: TweenInfo