Hey! I want to get this folder of all its childrens and put it in a table. however it only puts one in. I tried print(unpack(ITEMLIST)) somehow it gave me all the values.
1 | local ITEMTABLE = { "..." , } |
2 |
3 | local ITEMLIST = game:GetService( "Workspace" ).Folder:GetChildren() |
4 |
5 | table.insert(ITEMTABLE, tostring ( unpack (ITEMLIST))) |
Do a for loop through the item list and insert each individual one into the item table.
1 | for index, item in pairs (ITEMLIST) do |
2 | table.insert(ITEMTABLE, item) |
3 | end |
I didn't write this in Studio but the gist of it is to use a for loop to loop through the item list and insert each item into the item table.