gui/GuiManager/Misc/isDescendant.int
Ryan Ward 277cd5c553 I finally updated this thing
I need to keep a consistant record. I have small updates that exist everywhere sigh.
2019-02-10 10:09:01 -05:00

9 lines
159 B
Plaintext

function gui:isDescendant(obj)
local things = obj:GetAllChildren()
for i=1,#things do
if things[i] == self then
return true
end
end
return false
end