2016-12-02 19:02:26 -05:00

9 lines
163 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