Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i print workspace's Children?

Asked by
3F1VE 257 Moderation Voter
4 years ago

How do i print workspace's children? this is what i got so far :

print(workspace:GetChildren())

1 answer

Log in to vote
0
Answered by 4 years ago
local children = workspace:GetChildren()
for i,child in pairs(children) do
    print(child.Name)
end

What this does is it makes a table of all the workspace's children, and prints the name of every one.

-Ducky

Developer

Youtuber

0
how dare you i was going to answer sngnn 274 — 4y
0
Lol iivSnooxy 248 — 4y
Ad

Answer this question