Skip to content

vector<T>

Collection

Alias of array<T>. Not Vector3.

vector<T> name = { a, b };
NameTypeDescription
TtypeElement type.

A list ({T}).

{T}

Vector3 is a Roblox datatype (a value). vector<int> is a list of numbers. Do not confuse them.

vector<int> scores = {1, 2, 3};

Emits:

local scores: {number} = { 1, 2, 3 }

array · dictionary