If you create a Part/Model, parent it to another Model in workspace, then the child Part/Model falls into the void and is destroyed by FallenPartsDestroyHeight, calling :Destroy() on the child will destroy the parent IF the parent doesn’t have any other children.
Steps to reproduce:
- Create a part
- Parent the part to a model
- Drop the part into the void (destroy by FallenPartsDestroyHeight)
- Call :Destroy() on the part
Link (and download) to place file for reproduction. Check ServerScriptService:
destroyBug.rbxl (56.3 KB)
Notes:
- This issue occurs on both the client and server.
- This issue only seems to occur with Models as the Parent. I attempted a couple of other instances and neither of them have this issue.
- In the place file, there is a flag called
USE_ONLY_PART. If you set it to false, you can see that this issue also occurs with Models that are destroyed by FallenPartsDestroyHeight.
Expected behavior
When you call :Destroy() on an object, whether it is still in workspace or not, it should not destroy the parent. I imagine it should silently call the method or error.