saveinstance Asynchronous
SaveInstancesave_instancesaveplacesynsaveinstance
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.
Luau
saveinstance(...args: any) -> ...anyParameters
| Parameter | Type | Description |
|---|---|---|
...args | any | Arguments forwarded to the loaded exporter; consult that exporter for its current options. |
Returns
...anyThe 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
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