Connection:Enable Synchronous

Resume an inspected listener that was disabled earlier. Its callback can then receive future firings of the original signal.

Syntax
Luau
Connection:Enable() -> ()

Parameters

Call this method with a Connection receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.

This function takes no arguments.

Returns

()

No values.

Usage notes

Enable cannot reconnect a listener that was already disconnected. Check Enabled when you need to confirm its current state.

Example

Example
Luau
local event = Instance.new("BindableEvent")
event.Event:Connect(function() print("Listening") end)
local connection = getconnection(event.Event, 1)
if connection then
    connection:Disable()
    connection:Enable()
    print(connection.Enabled) -- true
end
event:Destroy()
Kawaii documentation