---
url: /process-functions/script-save.md
description: Saves the server.
---

# script.save

Saves the server, writing the current state of the models to disk. The process waits for the save to finish.

```js
script.save()
```

## Examples

```js
script.save();
```
