Library

TweenInfo

table

Constructor for the TweenInfo datatype describing tween timing, easing and direction.

Functions

1

#TweenInfo.new(time: number?, easingStyle: EasingStyle?, easingDirection: EasingDirection?, repeatCount: number?, reverses: boolean?, delayTime: number?) → TweenInfo

since 1.6.9-2-alpha

Bundles the parameters that describe how a Tween animates: duration, easing, repetition, reversing and start delay. Pass the result to TweenService:Create.

Parameters

timenumber?

Duration of the tween in seconds (default 1).

easingStyleEasingStyle?

Easing style applied to the interpolation (default Enum.EasingStyle.Quad).

easingDirectionEasingDirection?

Direction the easing style is applied in (default Enum.EasingDirection.In).

repeatCountnumber?

How many extra times the tween repeats; -1 repeats forever (default 0).

reversesboolean?

Whether the tween plays back to its starting values after reaching the goal (default false).

delayTimenumber?

Seconds to wait before the tween starts, applied again between repeats (default 0).