Let’s say I have an array of an arbitrary number of RBXScriptConnections that are stored to later be disconnected:
---ConnectionScript.client.lua
local C = {} :: {RBXScriptConnection}
Under what conditions, should ConnectionScript be destroyed, or if table.clear(C) is called, will array C and/or the connections stored inside it not leak memory?
Connections are destroyed if the thing that would fire them goes away. It will still be safe to call Disconnect on them in this case but it will do nothing.