TweenInfo
Configures tween duration, easing, repetition, reversal, and delay.
Behavior
TweenInfo stores tween timing settings. Pass it to
TweenService:Create with the target instance and
property values. The same settings can be reused for multiple tweens.
Summary
The delay in seconds before playback and each repetition.
Where easing is applied: In at the start, Out at the end, or InOut at both.
The interpolation curve used over the duration.
The number of additional repetitions.
Whether playback reverses after each forward pass.
The duration in seconds, excluding delay and repetitions.
Constructors
new
TweenInfo.new(time: number?, easingStyle: EnumItem?, easingDirection: EnumItem?, repeatCount: number?, reverses: boolean?, delayTime: number?): TweenInfoCreates timing settings. Arguments are duration, easing style, easing direction, repeat count, reversal, and delay. Only duration is required.
Properties
DelayTime
TweenInfo.DelayTime: numberThe delay in seconds before playback and each repetition.
EasingDirection
TweenInfo.EasingDirection: EnumItemWhere easing is applied: In at the start, Out at the end, or InOut at both.
EasingStyle
TweenInfo.EasingStyle: EnumItemThe interpolation curve used over the duration.
RepeatCount
TweenInfo.RepeatCount: numberThe number of additional repetitions. A value of -1 repeats indefinitely until cancelled.
Reverses
TweenInfo.Reverses: booleanWhether playback reverses after each forward pass.
Time
TweenInfo.Time: numberThe duration in seconds, excluding delay and repetitions.
Operators
__tostring · __type
Example
local info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)Used by
Related APIs
Tween · TweenService · Enum.EasingStyle · Enum.EasingDirection