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

what extent does IsDescendantOf reach?

Asked by
Trew86 175
6 years ago

By the title, I mean how many parents can an object have before the parent equals the parameter for it to return true?

wiki says, "An Instance is considered the descendant of an object if the Instance's parent or one of its parent’s parent is set to the object."

Does this mean IsDescendantOf will return true for only the parent or the parent's parent as the parameter? what about the parent's parent's parent and so on?

1 answer

Log in to vote
1
Answered by 6 years ago

IsDescendantOf is, in theory, infinite. So yes, the function accounts for any place in the parent hierarchy no matter how distantly related.

0
thank you! Trew86 175 — 6y
Ad

Answer this question