While I was making the storm physics script then I want every children even the models to blow away without they get declared because of this problem then I had to do this GetParent = game.Workspace,game.Workspace.Model
COMMUNITY QUESTION
How do I get every children like not only workspace?
1 answer
local GetWorkspace = game:GetChildren() --Get al children.
local GetItemsInWorkspace = game.Workspace:getChildren() --Get all children.
for I = 1, #GetWorkspace do
print(GetWorkspace[I]) --Prints children on output.
end
for I = 1, #GetItemsInWorkspace do
print(GetItemsInWorkspace[I]) -- Prints children on output.
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
