Hello,
Im trying to make a plot saving and loading system by using datastore. I can print the table by unpacking it and it prints the saved parts of the plor. But I can't copy them and give them a parent by unpacking it.
If anyone knows how to clone and give a parent to a table.Any help would be awesome.
You can use a for - loop
to get all of the assets in the table, then you can clone them and parent them.
1 | for i, TableChild in pairs (table) do -- Replace table with the actual table. |
2 | local newTableChild = TableChild:Clone() |
3 | newTableChild.Parent = workspace.TableFolder -- Replace with where you want it to be parented. |
4 | end |