What will happen when I do table.clear(touches)?

image

i will do for loop in touches and disconnect everything inside it.

My worry is, if i set a to nil will that disconnect the v.Touched?

Why would you set a to nil? There is no need for that.

No, you’re just setting the variable to nil. But why would you want to do that? It wouldn’t disconnect the connection and causes a memory leak

remove references to free up memory

because i inserted it into touches so i could loop through and disconnect it there

Ok, but don’t use table.clear to disconnect the connections