Just wondering if it would be possible to get the children of children through get children?
EX:
objectsInTheChildrenOfWorkspace = game.Workspace:GetChildren():GetChildren()
print(objectsInTheChildrenOfWorkspace)
Thanks
Just wondering if it would be possible to get the children of children through get children?
EX:
objectsInTheChildrenOfWorkspace = game.Workspace:GetChildren():GetChildren()
print(objectsInTheChildrenOfWorkspace)
Thanks
Try this:
for i,Child in pairs(game.Workspace:GetChildren()) do --Gets children of workspace
for i,Child2 in pairs(Child:GetChildren()) do --Gets children of the children in Workspace
Child2.Transparency = 1 --Example
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Cool