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

What is the function that gets everything in workspace like :FindFirstChild?

I am making a game where I want to make it so all the zombies get destroyed. Whats the function?

4 comments

1

:GetChildren()

0

Thx

0

or

1

I love it when people notice the answer is already given in comments. Then either take it for credit or answer anyway

2 answers

✓ Accepted answer

If your trying to get the first child use FindFirstChild if you want to get a table of things such as a player use :GetChildren()workspace Here's an example

workspace:GetChildren() -- this gets the whole service in the explorer like camera, terrain etc 

its

workspace:GetChildren()
-- if you wanted to make a variable of the stuff you could do this
local workspaceStuff = workspace:GetChildren() --note that this is a table

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