getconnections
Returns all handler connections bound to a given RBXScriptSignal.
function getconnections(signalsignalRBXScriptSignalThe signal to enumerate connections on.: RBXScriptSignal): {Connection}{Connection}An array of Connection objects, each wrapping a bound handler function.Usage
Disable all connections on a signal
for _, connection in pairs(getconnections(workspace.ChildAdded)) do
print("Handler:", connection.Function)
connection:Disable()
end