Serialises an instance and its descendants to an .rbxlx/.rbxl file in your workspace. Called with no arguments it saves the whole game.
This is installed from Luau, not native. On first use Athena fetches SynSaveInstance with game:HttpGet and runs it. That means the first call needs working HTTP, and the exact options and output format are SynSaveInstance’s rather than Athena’s. It is published on getgenv().

Parameters

Instance
The instance to save. Defaults to game.
table
SynSaveInstance’s option table. Athena merges in its own defaults, below.

Athena’s defaults

Athena pre-sets RiskyServicesDisabled so that the services most likely to hang or error during a save are skipped: Anything you pass in options overrides these; the three risky flags are only defaulted when you have not set them yourself.

Behavior

  • The first call is slow. It downloads and compiles the serialiser before doing any work. Later calls reuse it.
  • A bootstrap failure warns rather than raises. If the fetch or compile fails, a warning is printed at install time and the global will be absent. Check getgenv().saveinstance before relying on it.
  • Output goes to the workspace, where listfiles can see it.
  • Saving all of game is expensive in both time and memory.

Example