Skip to main content

Vector3(number x, number y, number z)

Creates a new vector with given x, y, z components.

Parameters:

NameTypeDescription
xnumberX component of the vector.
ynumberY component of the vector.
znumberZ component of the vector.

Usage

---@type number
local x;

---@type number
local y;

---@type number
local z;


local vector3 = Vector3(x, y, z);

Example

local position = Vector3(1, 5.3, 3);