restoresignal(signal)
Restores callbacks replaced by hooksignal.
Syntax
restoresignal(signal: RBXScriptSignal) -> boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
signal | RBXScriptSignal | Signal previously passed to hooksignal. |
Returns
| Type | Description |
|---|---|
boolean | true when a hook record existed and was restored. |
Description
Writes the original registry reference back into every slot wrapper that hooksignal replaced, then releases the dispatcher closures. Subsequent fires call the original callbacks again.
The hook record is removed, so issignalhooked reports false afterwards.
Example
hooksignal(value.Changed, function() return false end)
restoresignal(value.Changed)