saveinstance Asynchronous

  • SaveInstance
  • save_instance
  • saveplace
  • synsaveinstance

Run the place-export implementation loaded by Kawaii on first use. This is the export entry point when you want a local copy of the current place or its instances.

Syntax
Luau
saveinstance(...args: any) -> ...any

Parameters

Function parameters
ParameterTypeDescription
...argsanyArguments forwarded to the loaded exporter; consult that exporter for its current options.

Returns

...any

The values returned by the loaded exporter.

Usage notes

The exporter is fetched from UniversalSynSaveInstance over HTTPS and cached for later calls. Network, compilation, initialization, and export failures can raise.

Kawaii does not pin the exporter's options or return format, so check its current documentation before relying on either.

Example

Example
Luau
-- Run only when you intend to export the current place.
local ok, result = pcall(saveinstance)
if not ok then
    warn("Place export failed:", result)
else
    print("Export request finished", result)
end
Kawaii documentation