> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/script.ondisable.md).

# script.onDisable

> **onDisable**(`callback`): `void`

Register a callback to run when the script is disabled.

### Parameters

#### callback

`Function`

The function to run.

### Returns

`void`

### Remarks

This can only be used while the script is initializing.
