Yuari
Documentation
Docs/Closures/restoresignal

restoresignal(signal)

Restores callbacks replaced by hooksignal.

Syntax

restoresignal(signal: RBXScriptSignal) -> boolean

Parameters

ParameterTypeDescription
signalRBXScriptSignalSignal previously passed to hooksignal.

Returns

TypeDescription
booleantrue 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)