Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way of accessing all of a instances children?

Asked by 7 years ago

Is there a way of accessing all of a instances children?

Player = game.Players.LocalPlayer Character = Player.Character

For example, if I want to access all of "Characters" children which is Torso,Arm, and so on, how would I access all of it

How do I access all the children?

0
I already know you can use FindFirstChild dakanji123 97 — 7y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago

Use the Object:GetChildren() method.

This returns all Instances inside "Object" in a table.

Ad

Answer this question