Really quick help, one line of code

I’m new to coding and need to do a quick script, there’s one thing that I don’t know how to do and I cannot find a quick tutorial on youtube.

I need to select the children instead of selecting individual parts of the map, how to I select the entire of the model’s children.

For example, I need to do game.Workspace.Maps.Map1.Children

Obviously, this is incorrect but I don’t know the correct way of presenting the code, how do I do this instead of selecting them one by one?

1 Like

The usual way is doing

game.Workspace.Maps.Map1:GetChildren()
2 Likes

In studio you can right click and Select Children
The function is Instance:GetChildren()
See person above for that

2 Likes

Awesome, thanks, will import this now.

1 Like