Tables

Tables are variables used to hold information that can be manipulated. Example code provided below.

local MyTable = {1, 2, 3, 4, 5}

print(MyTable)

This code would print the numbers in the table.

Table.sort()

Sorts table least to greatest.

Table.remove()

Removes values from table.

table.remove(MyTable, 2) -- Removes the second value

Sorts the table with what you put in the parameters.

Last updated