Is there a way to make :GetChildren get every instance (or a function)

I want to make a function or something like GetChildren() but I need the instances inside the instance to go inside that table too.

So we make a baseplate and add a script in it.

Then we run the function.

NewGetChildren(workspace)

it will return {workspace.Camera,workspace.Baseplate,workspace.Baseplate.Script,workspace.Terrain}

That is not possible with the normal :GetChildren function as workspace.Baseplate.Script is missing

Nothing on google I found.

Is there a way to do this
Any help I would like!

1 Like

You can use :GetDescendants()

Wow, thank you so much :smiley:

1 Like