If you delete an instance while in a play test it doesn’t fire Instance:Destroying() script signal.
I’m trying to make my own custom explorer as it’s a useful debugging tool, and I tried fixing instance displays not deleting when I deleted them in the explorer only find out that the studio explorer doesn’t fire destroying signal while in play test for whatever reason
I’m guessing this is intentional because when you delete a part and undo the deletion, the part from the undone deletion is the same part as the one that was deleted. If the part was destroyed, there’d be no way to recover it from that state.
Try this in your command line: a=workspace.Part
Delete the part, undo =a==workspace.Part → true
If you destroy the part manually and try to undo via ChangeHistoryService, it will be impossible to recover the part:
I suppose I should of clarified it more, I can see as to why you wouldn’t want it to fire the destroying signal because of undo however, the problem is that it’s not firing it while in testing sessions, which for my particular case was quite annoying.
its intentional bc it doesn’t call :Destroy() on the instance it only parents it to nil (just like :Remove() does, so detect it by checking GetPropertyChangedSignal(“Parent”) and if it’s in nil)