GetChildren (Function)
From Legacy Roblox Wiki
|
Example
(Simple example)
local children = game.Workspace:GetChildren() for c = 1, #children do print(children[c].Name) end
(More efficient example)
local children = game.Workspace:GetChildren() for i, j in ipairs(children) do print("index: ") --j is the object, i is the index of the table it is at print(i) print("Object: ") print(j) end