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#
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.
| Name | Type | Default | Description |
|---|---|---|---|
time | number | 1 | Duration for the tween, in seconds. |
easingStyle | EasingStyle | Enum.EasingStyle.Quad | Easing style for the tween. |
easingDirection | EasingDirection | Enum.EasingDirection.Out | The direction in which the tween executes. |
repeatCount | number | 0 | Number of times the tween should repeat. -1 repeats indefinitely. |
reverses | bool | false | Whether the tween should reverse to the starting values once it reaches its targets. |
delayTime | number | 0 | Time of delay until the tween begins, in seconds. |
Properties 6#
EasingDirectionEasingDirection | The direction in which the tween executes. |
Timenumber | Duration of the tween, in seconds. |
DelayTimenumber | Time of delay until the tween begins, in seconds. |
RepeatCountnumber | Number of times the tween repeats. |
EasingStyleEasingStyle | The style in which the tween executes. |
Reversesbool | Whether 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.