Will variables become nil if its connected to an event and you disconnect the event?

If you put the variable as nil without disconnecting the function it will remain connected, the correct thing is to disconnect the connection and then place it as nil, so the garbage collector can clean up the memory it used.
image

2 Likes