i’m just kinda new to using tables and need some help
–Here’s The Script
for _, part in pairs(Build1:GetChildren()) do
part.Anchored = true
PartStoreTable[#PartStoreTable+1] = part
local randomPart = PartStoreTable[math.random(#PartStoreTable)]
table.remove(?)
end
The question mark is just a placeholder for what i should put there.
local childrenTable = {}
for _, child in pairs(Build1:GetChildren()) do
table.insert(childrenTable, child)
end
This would add all children of Build1 to the childrenTable table. As long as it’s not executed more than once, the childrenTable table should have no duplicates.