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

How i can take from 1 to 50 with :GetChildren()?

Sorry for bad english,

I need take the first 50 result of this:

local children = workspace:GetChildren()
for i = 1, #children do
    print(i, children[i].Name)
end

I need take , for example, from 1 to 50

1 answer

✓ Accepted answer
for i = 1, 50, 1 do

	print(i, children[i].Name)

end

it counts from 1 to 50 and each time it prints the name

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