AcediaDocumentation

restoresignal

Removes the hooks installed on a signal.

Puts every connection hooksignal wrapped back to its original callback. Restoring a signal that was never hooked does nothing.

restoresignal(signal: RBXScriptSignal): ()

Parameters

ParameterTypeDescription
signalRBXScriptSignalSignal to restore.

Example

local bindable = Instance.new("BindableEvent")
bindable.Event:Connect(function(value) print("original", value) end)
hooksignal(bindable.Event, function() return false end)
restoresignal(bindable.Event)
bindable:Fire("example")

Example output

original example

On this page