Description
If an instance is pinned by a script and parented to nil, it should normally show up in the LuauHeap inside the F9 console. at “Unparented Instances”.
However, let’s say all these “Frames” would be parented to a Folder. If I’d parent the Folder to nil, these pinned Frame Instances do not show up under the “Unparented Instances”, even though their top-level ancestor is parented to nil.
So, currently “Unparented Instances” only shows Instances that are directly parented to nil, instead of showing Instances that have their top-level ancestor parented to nil.
Because of this, it destroys the purpose of this debug window. As it is meant to help and show you things that may not get garbage collected because they’re still referenced to somewhere but can’t be seen.
Along with that, please consider the creator-docs PR as well, about AncestryChanged, and rename the placeholder callback arguments, for clarification.
Re-production Steps
See the video, re-production place file is attached as well.
You just have to run the game and wait, and then delete the “TestPart” using the Explorer.
Expected Result
I expect Instances which’s World Root is nil to show up in there as well, if it’s other condition to appear in there are met.
Actual Result
Nested Instances that have their ancestor parented to nil don’t show up in there.
- TestPart
- Parented Instances
If “TestPart” gets parented to nil, if a script has these “Parented Instances” pinned, they’d not show up in the F9 LuauHeap window at “Unparented Instances”.
A private message is associated with this bug report


