#can someone please explain the ''unpack'' function please

17 messages · Page 1 of 1 (latest)

fluid lake
#

U have a box?

#

Box contain things

#

U unpack it

#

Cuz its a box

#

Some people need boxes

#

Fr fr

wild sparrow
#

bro what

cold geyser
#

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)
wild sparrow
lyric mirageBOT
#

studio** You are now Level 2! **studio

wild sparrow
#

but not the values

cold geyser
#

If you want to remove a value from a table though, you can use table.remove(table, index)

wild sparrow
#

oh ok thanks