hello thanks for lending me your time, I was wondering if it was possible to insert a whole segment of an array into another one given a certain condition. I can't figure out why this isnt working:
local parts = map:GetChildren()
local mapparts = {}
for _, p in ipairs (parts) do
if p.Name == "mappiece" then
table.insert (mapparts, p)
end
end
i dont know why it only inserts 1 value into the table 'mapparts', could anyone help me out? thanks! (table parts has a lot of parts named mappiece)

1 comment
close the question please