tween
Animates towards a target over a fixed duration with easing, restarting from the current value when the target changes.
Types
State type
luau
type State<T> = {
kind: string?,
initial: T,
goal: T,
current: T,
start: number,
}Functions
tween
luau
tween<T>(s: scope.Scope, goal: T, duration: number, style: Enum.EasingStyle?, direction: Enum.EasingDirection?): T