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

How to find parent of a parent of a parent?

Asked by 4 years ago

Basically parents of parents

1 answer

Log in to vote
0
Answered by 4 years ago

You would basically just keep doing script.Parent

for instance, if you had something parented to the head of a character and you wanted to access the character, you would do script.Parent (to get to the head) and then .Parent again (to get to the character) .

So your full script would be script.Parent.Parent, accessing the parent of the parent, hope this helps!

0
Thx Tosik543 4 — 4y
Ad

Answer this question