Is there a way I can detect the object is destroyed?
Experiment script:
local mytable = {}
local part = workspace.Part
table.insert(mytable,part)
print(#mytable) --Prints 1 '_'
part:Destroy()
print(#mytable) --Prints 1? 0_0
print(mytable[1]) --Prints Part? O_O

1 comment
Fluff my stupid brain! I just only have to check the parent is nil or not.