TweenInfoRoblox✎
How a tween moves, without saying what it moves. One TweenInfo can drive any number of tweens.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
- pure — no execution pins, wire it anywhere
- names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals
Inputs
- Time:number=
1 - Easing Style:string=
"Quad"literalfrom a listOffers 11 values to pick from, and takes anything else typed in. - Easing Direction:string=
"Out"literalfrom a listOne of Out, In, InOut — or anything else, typed in. - Repeat Count:number=
0 - Reverses:boolean=
false - Delay:number=
0
Outputs
- result:TweenInfo
What it compiles to
luau
print(TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out))
Warning
Easing Style, Easing Direction are typed in directly and pasted into the generated source, so it cannot be wired from a value. The editor refuses the connection rather than letting it fail at compile time.
Not reviewed yet