DataType
Types
Animatable type
luau
type Animatable = number
& vector
& CFrame
& Color3
& ColorSequence
& ColorSequenceKeypoint
& DateTime
& NumberRange
& NumberSequence
& NumberSequenceKeypoint
& PhysicalProperties
& Ray
& Rect
& Region3
& Region3int16
& UDim
& UDim2
& Vector2
& Vector2int16
& Vector3
& Vector3int16Functions
unpack
luau
DataType.unpack(arr: { number }, t: string): anyUnpacks an array of numbers into a given animatable data type
unpacker
luau
DataType.unpacker(t: string): (({ number }) -> any)Returns the unpacker for an animatable type
pack
luau
DataType.pack(arr: { number }, value: Animatable, t: string)Packs an animatable type into an array of numbers; an unanimatable type leaves (and returns) the array empty