Events and memory leaks

I have a question regarding memory leaks. If I make a connection to the humanoid’s died event, should I destroy that connection once the event is fired? I don’t know if this event will actually cause a memory leak in the first place.

That humanoid gets destroyed anyways so Roblox automatically disconnects any event connection to that humanoid once it gets destroyed if you don’t disconnect it yourself.

2 Likes