This article is a stub. You can help the ROBLOX Wikia by expanding it.

IsDescendantOf is a member function of Instance used to determine whether or not the provided object is a parent or distant parent of the calling object.

function object:IsDescendantOf(item)

local test = self

while test ~= item do

test = test.Parent

if item ~= game and test == game then return false end


return true


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.