Vector2()
7/14/25Less than 1 minute
Vector2(number x, number y)
Constructs a new vector with given x, y components.
Parameters:
Name | Type | Description |
---|---|---|
x | number | X component of the vector. |
y | number | Y component of the vector. |
Usage
---@type number
local x;
---@type number
local y;
local vector2 = Vector2(x, y);