IsAncestorOf (Method)
From Legacy Roblox Wiki
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