Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is this segment a memory leak?

Lets say i have

 t = {Player1}  -- Assume player1 is a Player

then Player1 leaves the game

would t still have a reference to player1? and thus have a memory leak if i don't set its value to nil?

1 answer

Yes, you still have a reference to the player object. It won't be garbage collected until you lose the reference.

This discussion is preserved as it was. New answers, comments, and votes are closed.