Skip to content

Vector2

Represents a Roblox Vector2 Datatype.

There is an optional coord parameter representing each coordinate (x, y) which defaults to f32. It is worth noting that an f64 Datatype's precision won't apply here, so f32 is always better for vectors.

function light.datatypes.roblox_vect2

Shared Synchronous
1
2
3
function roblox_vect2(
    coord: Datatype<number>?
): Datatype<vector>