Is Adornee a strong reference?

Just wondering if I needed to do BillboardGui.Adornee = nil before destroying the BillboardGui so that memory leaks don’t occur.

I mean once you lose a reference to the billboard gui there won’t be any more Adornee property to refer to the part ¯\_(ツ)_/¯

1 Like

No you don’t. When you destroy the BillboardGui it removes the reference to Adornee. Strong references only apply to tables that never get garbage collected, and you don’t need to worry about roblox instances referencing to other ones, just the ones you explicitly reference

2 Likes

Oh that makes sense. I still don’t fully understand the concept of GC so I might have to dive into that further.

This post is excellent for understanding the concept, and it has an example of how to check if your leaking memory: Garbage Collection and Memory Leaks in Roblox - What you should know

1 Like