ReferenceSignals

connection:Disable

Pauses a connection without disconnecting it.

Syntax

connection:Disable() -> ()

Description

Signal deliveries do not invoke the disabled callback until connection:Enable restores it. Disabling one listener does not suppress the event for every other listener.

Example

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

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