I am making a game where I want to make it so all the zombies get destroyed. Whats the function?
✓ ANSWER ACCEPTED
What is the function that gets everything in workspace like :FindFirstChild?
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.

4 comments
:GetChildren()
Thx
or
I love it when people notice the answer is already given in comments. Then either take it for credit or answer anyway