vector.unpack
EditReturns the components of the vector as numbers.
x, y, z = vector.unpack(v)Arguments
| Name | Type | Description |
| v | vector | The vector to unpack. |
Returns
| Name | Type | Description |
| x | number | The x component of the vector. |
| y | number | The y component of the vector. |
| z | number | The z component of the vector. |
Example
local x, y, z = vector(1, 2, 3):unpack()