Well… I’m making this post as I recently made an wood chopping script, I’ve been told not disconnecting the “Touched” event can cause a memory leak.
What I want to know now is the main cause of memory leaks, what problems they can bring, and how you can prevent them. Also, how can Hackers use these memory leaks to exploit the game if that’s even possible.
If you :Destroy() then part afterwards, it should clear all connections automatically, so you should be fine.
As to what it does, it creates memory leaks which are bad since they ultimately lead to increased memory and lag.
Exploiters can’t do much with memory leaks.
In case you’re not :Destroying() the object, you should definitely :Disconnect() all events used on it.