IsAncestorOf (Method)
From Legacy Roblox Wiki
(Redirected from IsAncestorOf (Function))
IsAncestorOf( Instance descendant ) | |
Returns | boolean is ancestor |
Description: | Returns true if the object is an ancestor of descendant. |
Member of: | Instance |
Example
print(game.Workspace:IsAncestorOf(game.Workspace.Player.Torso)) --> true