vector<T>
vector<T>
Section titled “vector<T>”Alias of array<T>. Not Vector3.
Syntax
Section titled “Syntax”vector<T> name = { a, b };Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
T | type | Element type. |
Return value
Section titled “Return value”A list ({T}).
Luau emit
Section titled “Luau emit”{T}
Description
Section titled “Description”Vector3 is a Roblox datatype (a value). vector<int> is a list of numbers. Do not confuse them.
Example
Section titled “Example”vector<int> scores = {1, 2, 3};Emits:
local scores: {number} = { 1, 2, 3 }