Atomic docs

getconnections

getconnections(signal: RBXScriptSignal): {Connection}

Every connection on a signal, each with Function, Thread, Enabled, ForeignState and LuaConnection, plus Fire, Defer, Disconnect, Disable and Enable.

Example

lua
for _, c in getconnections(part.Touched) do
    c:Disable()
end
↑