ReferenceSignals

connection:Disconnect

Removes one connection from its signal.

Syntax

connection:Disconnect() -> ()

Also available as

connection:disconnect

Description

This is permanent for that connection; Enable is not an undo operation. Disconnecting a connection does not destroy its signal owner or disconnect every other listener.

Example

local event = Instance.new("BindableEvent")
event.Event:Connect(function() end)
getconnections(event.Event)[1]:Disconnect()
event:Destroy()

These are Game executor contracts. Check build requirements and session lifetimes before using them.