roblox loop through all childs code example
Example: get children roblox
local children = workspace:GetChildren()
for i = 1, #children do
print(i, children[i].Name)
end
local children = workspace:GetChildren()
for i = 1, #children do
print(i, children[i].Name)
end