TweenInfo
Summary
Constructors
Constructors of a `TweenInfo`.Properties
Properties of a `TweenInfo`.- Time:
Number - EasingStyle:
Enum.EasingStyle - EasingDirection:
Enum.EasingDirection - RepeatCount:
Number - Reverses:
Boolean - DelayTime:
Number
Constructors
TweenInfo.new(time: Number?, easingStyle: Enum.EasingStyle?, easingDirection: Enum.EasingDirection?, repeatCount: Number?, reverses: Boolean?, delayTime: Number?)
TweenInfoReturns a
TweenInfodata container to be fed into TweenService.Note that
timeis in seconds.All constructor parameters are optional, so not everything has to be specified; note the following defaults:
TweenInfo.Time=1TweenInfo.EasingStyle=Enum.EasingStyle.QuadTweenInfo.EasingDirection=Enum.EasingDirection.OutTweenInfo.RepeatCount=0TweenInfo.Reverses=falseTweenInfo.DelayTime=0
Properties
Time
NumberDuration for the tween, in seconds.
EasingStyle
Enum.EasingStyleEasing style for the tween.
EasingDirection
Enum.EasingDirectionDirection in which the tween should execute.
RepeatCount
NumberNumber of times the tween repeats.
Note that if repeat count is
-1it will repeat forever.
Set
repeatCountto-1to repeat forever.
Reverses
BooleanWhether the tween should reverse to the starting value once it reaches its target.
DelayTime
NumberTime before the tween begins, in seconds.
Constructors
new
TweenInfo
TweenInfo.new(time: Number, easingStyle: Enum.EasingStyle, easingDirection: Enum.EasingDirection, repeatCount: Number, reverses: Boolean, delayTime: Number)Creates a TweenInfo value that configures a Tween.
Parameters
time:Number— the duration in seconds.easingStyle:Enum.EasingStyle— the easing curve.easingDirection:Enum.EasingDirection— the easing direction.repeatCount:Number— the number of repeats;-1repeats forever.reverses:Boolean— whether each repeat reverses direction.delayTime:Number— the delay before playback begins, in seconds.
Testing Notes
TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
returned a TweenInfo table in both Script and LocalScript in Vortex Studio
0.3.4. Runtime availability may differ in later releases.
repeatCount = -1 is treated as an infinite repeat count.