Hey, I want to ensure I don’t get any memory leaks while making my game. There are some old posts on this topic but are 5 years old now. I would like to know, if I have an event listener linked to an instance, must I disconnect the event if the instance is destroyed?
For example I have a script that loads the player’s character every time the .Died:Once event fires on their Humanoid. In the event that the player leaves the game and their character gets deleted, must I now disconnect the connection for the .Died event or is it automatically removed?