Datatypes
Use Kinemium vectors, transforms, colors, UI dimensions, query parameters, and utility types.
Datatypes
Kinemium loads datatype modules into the script environment. Table results are tagged with __type and __datatype.
Vectors
local a = Vector3.new(1, 2, 3)
local b = Vector3.new(4, 0, -2)
print(a:Magnitude())
print(a:Dot(b))
print(a:Cross(b))
local direction = (b - a):Unit()CFrame
local transform = CFrame.new(0, 5, 0)
local facing = CFrame.lookAt(
Vector3.new(0, 5, 10),
Vector3.zero
)
local worldPoint = transform:PointToWorldSpace(Vector3.new(0, 0, -5))UI dimensions
UDim and UDim2 model scale-plus-offset UI dimensions. Use the exact constructors exposed by their reference/source because Canary signatures can evolve.
Queries
Ray, RaycastParams, RaycastResult, OverlapParams, Region, and related types support world/spatial queries.
local origin = Vector3.new(0, 10, 0)
local direction = Vector3.new(0, -100, 0)
local result = workspace:Raycast(origin, direction)
if result then
print(result)
endBrowse the complete datatype reference.