#can someone please explain the ''unpack'' function please
17 messages · Page 1 of 1 (latest)
bro what
Unpack returns each value in a table
You can use it by doing
local itemList = {1,2,3}
local item1, item2, item3 = table.unpack(itemList)
so it like cancels the table?
** You are now Level 2! **
but not the values
No, it just assigns the values to variables
If you want to remove a value from a table though, you can use table.remove(table, index)
oh ok thanks
