I now of if part == nil then
but I have multiple parts that are the same name. I need it to trigger a function every time one is removed. Is there a method?
Yeah, there is an even for that:
part.Parent.ChildRemoved:connect(function(child) --Child is the part that got removed end)
Now, it doesn't need to be exactly part.Parent
, it's just the model that contains those parts.