2017-11-29 22:13:32 -05:00

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