Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I collect all the names from a section?

How would I collect all the names from a section (for example in workshop, every part in there I can collect the names or do other stuff)

1 answer

local children = workspace:GetChildren() --set workspace to whatever you want
for i = 1, #children do
    print(i, children[i].Name)
end

This will "collect" all names and print them in console.

This discussion is preserved as it was. New answers, comments, and votes are closed.