Skip to main content

UniversalSynSaveInstance

This module saves the current place, one Instance (a Roblox object), or a group of Instances to a .rbxl/.rbxm (binary) or .rbxlx/.rbxmx (XML) file.

All options are optional. See UniversalSynSaveInstance.SaveInstanceOptions for all options. Option names are not case-sensitive. Old names from UniversalSynSaveInstance.OptionsAliases and UniversalSynSaveInstance.OptionsAliasesInverse also work. The most common options are at the top of UniversalSynSaveInstance.SaveInstanceOptions. Related options are grouped together, and advanced or rarely used options are at the bottom.

Types​

SaveInstanceOptions​

interface SaveInstanceOptions {
mode: string--

What to save. optimized saves the most important services (Workspace, Players, Lighting, ReplicatedStorage, StarterGui, and others). full saves everything under game. scripts saves only the top-level parts that contain a LuaSourceContainer (a script object). It saves the whole part, not just the script. Any other value saves only ExtraInstances (and Object, if set). If Object is set, optimized becomes full. Default: optimized

Binary: boolean--

Save a binary file (.rbxl/.rbxm) instead of an XML file (.rbxlx/.rbxmx). Binary files are smaller and load faster. If the executor cannot write binary data correctly, the script uses XML. Set the old option XML = true to force XML. Default: true

CompressionMode: string | boolean--

How to compress (make smaller) the binary file: "zstd", "lz4", or false for no compression. true means "zstd". The old option DisableCompression = true means false. Default: "zstd"

CompressionLevel: number--

Compression level for zstd, from -7 to 22. A higher level makes a smaller file but takes longer. This is ignored for lz4 and when compression is off. Default: 9

FilePath: string | false--

File name to save to. You can include a folder. If the name has no extension, the script adds one based on Binary and IsModel. If you set this, the script overwrites an existing file and ignores AvoidFileOverwrite. Default: false

SafeMode: boolean--

Disconnect the LocalPlayer from the game when saving starts. This turns on KillAllScripts and BoostFPS unless you set them yourself. HIGHLY RECOMMENDED. Default: false

KillAllScripts: boolean--

Close or disable other running scripts before saving. SafeMode turns this on. Some games stop responding to input after this. That is normal. HIGHLY RECOMMENDED. Default: false

BoostFPS: boolean--

Turn off 3D rendering while saving, then turn it back on. SafeMode turns this on. Default: false

Object: Instance | false--

Save this Instance instead of the whole place. The script saves a model if you do not set IsModel = false. If you pass game, it saves the place and uses full mode. You must pass an Instance, not a name. Default: false

IsModel: boolean--

Save a model (.rbxm/.rbxmx) instead of a place (.rbxl/.rbxlx). Object turns this on unless you set it yourself. Passing a list of Instances as an argument also turns it on. Default: false

ShowStatus: boolean--

Show a status label on the screen. It shows the size while saving, then the final size and time. Default: true

ReadMe: boolean--

Add a README script to the save. It contains save details (place ID, date, time, platform, executor, recovered scripts, warnings) and tips. Default: true

Decompile: boolean--

Turn the compiled script back into source code (decompile). This replaces the Source of each LuaSourceContainer with decompiled code. If this is off, Source says decompiling is disabled. Default: true

SaveBytecode: boolean--

If the executor supports getscriptbytecode, add the compiled script data (bytecode) to Source as a comment. You can decompile it later. This respects DecompileIgnore. Default: false

DecompileTimeout: number--

How many seconds one decompile call can take. If it takes longer, the script stops waiting and writes a timeout message in Source. Set to -1 to disable the timeout. Default: 10

BytecodeTimeout: number--

How many seconds a getscriptbytecode call can take. If it takes longer, the script stops waiting and skips the bytecode for that script. Set to -1 to disable the timeout. Default: 3

DecompileIgnore: {Instance | string} | {[Instance | string]: boolean | {[string]: boolean}}--

Skip decompiling matched Instances and their children. Source becomes a short ignored message. You can pass an Instance, a class name, or ClassName = {Name1, Name2}. Set an Instance to false to skip only that instance, not its children. Default: {TextChatService}

SourceCache: {[Instance]: string} | false--

Source text to use for these scripts as-is instead of decompiling them. Default: false

DecompileJobless: boolean--

Only use scripts that are already in the decompile cache. Missing scripts get a short not-found message. This turns on scriptcache. Default: false

scriptcache: boolean--

If the executor supports getscriptbytecode, cache decompiled code. This avoids decompiling the same script twice. The cache stays after the script reloads. Default: true

RecoverScriptsFromAssets: boolean--

Recover the original Source of scripts that were published as assets. Changes made after publishing are not included. Default: true

IsolatePlayers: boolean--

Put every Player under a top-level "Players" Folder instead of inside the Players service. This turns on SaveNotCreatable. If both are on, this option is used instead of IsolateLocalPlayer. Default: false

IsolateLocalPlayer: boolean--

Save the LocalPlayer as a Folder named "LocalPlayer" instead of a Player object. This is ignored if IsolatePlayers is on. Default: false

IsolateLocalPlayerCharacter: boolean--

Save LocalPlayer.Character as a Model named "LocalPlayer Character". This saves the character even when characters are normally skipped. Default: false

IsolateStarterPlayer: boolean--

Put StarterPlayer's children under a top-level "StarterPlayer" Folder. The original service stays, but it is empty. Default: false

SavePlayerCharacters: boolean--

Save player characters instead of skipping them. This also saves objects with Archivable = false, so IgnoreNotArchivable is forced on. Default: false

NilInstances: boolean--

Include objects that have no parent (they are not under game). This needs the executor function getnilinstances. When that function exists, it also turns on SaveNotCreatable. Default: false

ExtraInstances: {Instance}--

A list of Instances to add to the normal save. If mode is not a valid value, only these Instances (and Object, if set) are saved. Passing a list of Instances as an argument fills this list. Default: {}

IgnoreList: {Instance | string} | {[Instance | string]: boolean | {[string]: boolean}}--

Objects to skip. Use an Instance or a class name as a key to skip that object and its children. ClassName = false keeps the object but skips its children. ClassName = {Name1, Name2} skips objects with those names. You can also pass a list of Instances or class names. Default: {CoreGui, CorePackages, Packages = false}

MaxDepth: number--

Objects nested deeper than this are moved up under their ancestor at depth MaxDepth, so nothing is dropped, only the nesting is lost. This stops very deep hierarchies from overflowing the stack when Roblox Studio opens the file (binary saves opened at 1740 levels deep; XML saves crashed at 1750). Use math.huge to disable. Default: 1000

IgnoreSpecialProperties: boolean--

Do not use the executor function gethiddenproperty. Other property reads still work. This can help if your executor crashes or the file is corrupted. Default: false

AlternativeWritefile: boolean--

Write the file in smaller pieces with appendfile instead of one writefile call. For binary saves, if appendfile fails, it uses writefile; if both fail, it switches to XML. Default: true

Anonymous: boolean | {
Name: string?,
UserId: number?
}--

RISKY: Replace LocalPlayer.Name and UserId in the output. true replaces them with "Roblox" and 1. You can also pass a table with Name and/or UserId. Name matching ignores case. This can also change other text or numbers that match. Default: false

RiskyServicesDisabled: {
UGC: boolean?,
Encoding: boolean?,
Reflection: boolean?
}--

Turn off services that some games may detect. UGC skips UGCValidationService (used for some hidden properties). Encoding skips EncodingService. Reflection skips ReflectionService (used for class data). Set a flag to true to skip that service. If you do not set RiskyServicesDisabled yourself, the UGC fallback turns on automatically when gethiddenproperty is missing. Default: {UGC = true, Encoding = false, Reflection = false}

AvoidFileOverwrite: boolean--

If FilePath is not set, add (1), (2), ... to the file name instead of overwriting an existing file. Default: true

AntiIdle: boolean--

Stop Roblox from kicking you for being idle (not moving) for 20 minutes. Default: true

CopyToClipboard: boolean--

Copy the result to the clipboard (the copy/paste buffer) instead of writing a file. Your executor must support setrbxclipboard. Use this only for small saves. Default: false

Callback: ((
data: string,
chunks: {string}
) → ()) | false--

Call this function with the result instead of writing a file. It receives the full text and a list of chunks. If CopyToClipboard is also on, the clipboard is used instead. Default: false

IgnoreProperties: {string}--

A list of property names to skip on every object. For example: {"Tags", "AttributesSerialize"}. Default: {}

IgnoreNotArchivable: boolean--

Save objects even when their Archivable property is false. If this is off, the script skips those objects. Default: true

SaveNotCreatable: boolean--

Save classes that Roblox says are not creatable. The script replaces them with a class it can create, using NotCreatableFixes (usually Folder). This turns on automatically with IsolatePlayers, IsolateLocalPlayer, and NilInstances (when getnilinstances exists). Default: false

NotCreatableFixes: {string} | {[string]: string | false}--

Replace a class with a class that can be created. The default replacement is "Folder". A list of class names also becomes Folder. Built-in changes: Player, PlayerGui, PlayerScripts, TouchTransmitter, and others become Folder; CloudLocalizationTable becomes LocalizationTable; Platform becomes Part; Status becomes Model. Set a class to false to skip its replacement. Default: built-in replacements

NilInstancesFixes: {[string]: ((
instance: Instance,
overrides: table
) → Instance?) | false}--

Where to put objects that have no parent. For example, it puts Animator under an AnimationController. Built-in fixes exist for Animator, AdPortal, Attachment, BaseWrap, and PackageLink. Child classes use the parent fix (Bones use the Attachment fix). Set a class to false to turn off its fix. Default: built-in Animator/AdPortal/Attachment/BaseWrap/PackageLink fixes

IgnoreDefaultProperties: boolean--

Skip properties that already have the default value for their class. This only affects XML output. Binary output does not use this option. Default: true

IgnorePropertiesOfNotScriptsOnScriptsMode: boolean--

Only in scripts mode: save properties for LuaSourceContainers and skip properties for all other objects. This does nothing in other modes. Default: false

IgnoreDefaultPlayerScripts: boolean--

Skip Roblox's default player scripts (PlayerModule, BubbleChat, ChatScript, PlayerScriptsLoader, RbxCharacterSounds). This can stop some executors from crashing during decompile. Default: false

SaveCacheInterval: number--

How much XML data the script holds in memory while saving. Lower values update the status more often but are slower. This does not write to disk. When KillAllScripts is on, this also sets the script timeout between 20 and 30 seconds. Default: 0x1600 * 10

SharedBinaryStrings: boolean--

Store the same binary data (meshes, images, ...) only once in the file. This makes saves with repeated data smaller. Files with all unique data can get slightly bigger. This is not an official Roblox format, but Studio can still open the file. Default: false

TreatUnionsAsParts: boolean--

Change all PartOperations (unions and intersections) into Parts. RISKY: you lose the merged shape, but executors that cannot read unions will still show visible parts. Default: false

ShutdownWhenDone: boolean--

Close the game after a successful save. Default: false

__DEBUG_MODE: boolean | ((...any) → ())--

Print debug warnings for unusual cases. If you pass a function, the script uses it instead of warn. Default: false

}

Options for UniversalSynSaveInstance.synsaveinstance. All fields are optional. The default is shown at the end of each field. Option names are not case-sensitive: NilInstances, nilinstances, and nilInStaNces are the same option. Unknown names are ignored.

OptionsAliases​

interface OptionsAliases {
AnonymousMode: string--

Anonymous

Blacklist: string--

IgnoreList

ClassIgnoreList: string--

IgnoreList

Clipboard: string--

CopyToClipboard

Compress: string--

CompressionMode

Compression: string--

CompressionMode

Debug: string--

__DEBUG_MODE

DecompileScripts: string--

Decompile

Decompiler: string--

Decompile

DecompilerTimeout: string--

DecompileTimeout

EmbedBytecode: string--

SaveBytecode

FileName: string--

FilePath

IgnoreArchivable: string--

IgnoreNotArchivable

IgnoreClasses: string--

IgnoreList

IgnoreDefaultProps: string--

IgnoreDefaultProperties

IgnoreInstances: string--

IgnoreList

IgnoreProperty: string--

IgnoreProperties

IgnoreRobloxPlayerScripts: string--

IgnoreDefaultPlayerScripts

InstanceIgnoreList: string--

IgnoreList

InstancesBlacklist: string--

IgnoreList

IsolatePlayerGui: string--

IsolateLocalPlayer

LocalPlayer: string--

IsolateLocalPlayer

Model: string--

Object

NoXML: string--

Binary

Path: string--

FilePath

Players: string--

IsolatePlayers

Progress: string--

ShowStatus

Root: string--

Object

SaveAsBinary: string--

Binary

SaveCharacters: string--

SavePlayerCharacters

SaveLocalPlayer: string--

IsolateLocalPlayer

SaveModel: string--

Object

SaveNil: string--

NilInstances

SaveNilInstances: string--

NilInstances

SaveNonCreatable: string--

SaveNotCreatable

SavePlayerGui: string--

IsolateLocalPlayer

SavePlayers: string--

IsolatePlayers

SavePlayersData: string--

IsolatePlayers

SaveScripts: string--

Decompile

SaveStarterPlayer: string--

IsolateStarterPlayer

ScriptDecompile: string--

Decompile

ShowProgress: string--

ShowStatus

Status: string--

ShowStatus

StatusText: string--

ShowStatus

UseDecompiler: string--

Decompile

Verbose: string--

__DEBUG_MODE

timeout: string--

DecompileTimeout

}

Map of old option names to new option names for the UniversalSynSaveInstance.SaveInstanceOptions table. Format: { OldName = NewName } The script reads these before your options, so you cannot change them after the script starts.

OptionsAliasesInverse​

interface OptionsAliasesInverse {
DisableCompression: string--

CompressionMode

NoDecompile: string--

Decompile

noscripts: string--

Decompile

NullifyScripts: string--

Decompile

Overwrite: string--

AvoidFileOverwrite

RemovePlayerCharacters: string--

SavePlayerCharacters

RemovePlayers: string--

IsolatePlayers

SkipScripts: string--

Decompile

XML: string--

Binary

}

Map of old option names that change a true/false value to the opposite. Format: { OldName = NewName } The script flips the value before it uses it. noscripts = true sets Decompile = false. DisableCompression = true sets CompressionMode = false. Overwrite = true sets AvoidFileOverwrite = false. The script reads these before your options, so you cannot change them after the script starts.

Functions​

synsaveinstance​

This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts. Yields
UniversalSynSaveInstance.synsaveinstance(
...: table | SaveInstanceOptions | Instance | string--

UniversalSynSaveInstance.SaveInstanceOptions tables are combined in order. An executor's native SaveInstanceOptions object is read the same way as a table, but not every property may be supported, because the property set varies per executor. An Instance becomes Object. A string becomes FilePath; an empty string counts as not set. A list of Instances becomes ExtraInstances and sets IsModel = true. If you pass Instances directly and do not set mode, mode becomes invalid, so only those Instances are saved.

) → ()

Save the current place, one Instance, or a group of Instances. Example:

local Params = {
	RepoURL = "https://raw.githubusercontent.com/luau/UniversalSynSaveInstance/main/",
	SSI = "saveinstance",
}

local synsaveinstance = loadstring(game:HttpGet(Params.RepoURL .. Params.SSI .. ".luau", true), Params.SSI)()

local SaveInstanceOptions = { SafeMode = true, DecompileTimeout = 15, SaveBytecode = true }

synsaveinstance(SaveInstanceOptions)

You can pass any number of arguments, in any order:

synsaveinstance({ mode = "scripts" }, "myScripts.rbxlx")
synsaveinstance(workspace.Model) -- Object; saved as a model
synsaveinstance({ workspace.Model, workspace.OtherModel }) -- ExtraInstances
Show raw api
{
    "functions": [
        {
            "name": "synsaveinstance",
            "desc": "Save the current place, one [Instance], or a group of [Instance]s. Example:\n```lua\nlocal Params = {\n\tRepoURL = \"https://raw.githubusercontent.com/luau/UniversalSynSaveInstance/main/\",\n\tSSI = \"saveinstance\",\n}\n\nlocal synsaveinstance = loadstring(game:HttpGet(Params.RepoURL .. Params.SSI .. \".luau\", true), Params.SSI)()\n\nlocal SaveInstanceOptions = { SafeMode = true, DecompileTimeout = 15, SaveBytecode = true }\n\nsynsaveinstance(SaveInstanceOptions)\n```\n\nYou can pass any number of arguments, in any order:\n```lua\nsynsaveinstance({ mode = \"scripts\" }, \"myScripts.rbxlx\")\nsynsaveinstance(workspace.Model) -- Object; saved as a model\nsynsaveinstance({ workspace.Model, workspace.OtherModel }) -- ExtraInstances\n```",
            "params": [
                {
                    "name": "...",
                    "desc": "[UniversalSynSaveInstance.SaveInstanceOptions] tables are combined in order. An executor's native `SaveInstanceOptions` object is read the same way as a table, but not every property may be supported, because the property set varies per executor. An [Instance] becomes `Object`. A string becomes `FilePath`; an empty string counts as not set. A list of Instances becomes `ExtraInstances` and sets `IsModel = true`. If you pass Instances directly and do not set `mode`, `mode` becomes invalid, so only those Instances are saved.",
                    "lua_type": "table | SaveInstanceOptions | Instance | string"
                }
            ],
            "returns": [],
            "function_type": "static",
            "yields": true,
            "source": {
                "line": 3802,
                "path": "saveinstance.luau"
            }
        }
    ],
    "properties": [],
    "types": [
        {
            "name": "SaveInstanceOptions",
            "desc": "Options for [UniversalSynSaveInstance.synsaveinstance]. All fields are optional.\nThe default is shown at the end of each field. Option names are not\ncase-sensitive: `NilInstances`, `nilinstances`, and `nilInStaNces` are the\nsame option. Unknown names are ignored.",
            "fields": [
                {
                    "name": "mode",
                    "lua_type": "string",
                    "desc": "What to save. `optimized` saves the most important services (Workspace, Players, Lighting, ReplicatedStorage, StarterGui, and others). `full` saves everything under `game`. `scripts` saves only the top-level parts that contain a [LuaSourceContainer] (a script object). It saves the whole part, not just the script. Any other value saves only `ExtraInstances` (and `Object`, if set). If `Object` is set, `optimized` becomes `full`. ___Default:___ `optimized`"
                },
                {
                    "name": "Binary",
                    "lua_type": "boolean",
                    "desc": "Save a binary file (`.rbxl`/`.rbxm`) instead of an XML file (`.rbxlx`/`.rbxmx`). Binary files are smaller and load faster. If the executor cannot write binary data correctly, the script uses XML. Set the old option `XML = true` to force XML. ___Default:___ true"
                },
                {
                    "name": "CompressionMode",
                    "lua_type": "string | boolean",
                    "desc": "How to compress (make smaller) the binary file: `\"zstd\"`, `\"lz4\"`, or `false` for no compression. `true` means `\"zstd\"`. The old option `DisableCompression = true` means `false`. ___Default:___ `\"zstd\"`"
                },
                {
                    "name": "CompressionLevel",
                    "lua_type": "number",
                    "desc": "Compression level for zstd, from -7 to 22. A higher level makes a smaller file but takes longer. This is ignored for lz4 and when compression is off. ___Default:___ 9"
                },
                {
                    "name": "FilePath",
                    "lua_type": "string | false",
                    "desc": "File name to save to. You can include a folder. If the name has no extension, the script adds one based on `Binary` and `IsModel`. If you set this, the script overwrites an existing file and ignores `AvoidFileOverwrite`. ___Default:___ false"
                },
                {
                    "name": "SafeMode",
                    "lua_type": "boolean",
                    "desc": "Disconnect the LocalPlayer from the game when saving starts. This turns on `KillAllScripts` and `BoostFPS` unless you set them yourself. **HIGHLY RECOMMENDED.** ___Default:___ false"
                },
                {
                    "name": "KillAllScripts",
                    "lua_type": "boolean",
                    "desc": "Close or disable other running scripts before saving. `SafeMode` turns this on. Some games stop responding to input after this. That is normal. **HIGHLY RECOMMENDED.** ___Default:___ false"
                },
                {
                    "name": "BoostFPS",
                    "lua_type": "boolean",
                    "desc": "Turn off 3D rendering while saving, then turn it back on. `SafeMode` turns this on. ___Default:___ false"
                },
                {
                    "name": "Object",
                    "lua_type": "Instance | false",
                    "desc": "Save this [Instance] instead of the whole place. The script saves a model if you do not set `IsModel = false`. If you pass `game`, it saves the place and uses `full` mode. You must pass an [Instance], not a name. ___Default:___ false"
                },
                {
                    "name": "IsModel",
                    "lua_type": "boolean",
                    "desc": "Save a model (`.rbxm`/`.rbxmx`) instead of a place (`.rbxl`/`.rbxlx`). `Object` turns this on unless you set it yourself. Passing a list of Instances as an argument also turns it on. ___Default:___ false"
                },
                {
                    "name": "ShowStatus",
                    "lua_type": "boolean",
                    "desc": "Show a status label on the screen. It shows the size while saving, then the final size and time. ___Default:___ true"
                },
                {
                    "name": "ReadMe",
                    "lua_type": "boolean",
                    "desc": "Add a README script to the save. It contains save details (place ID, date, time, platform, executor, recovered scripts, warnings) and tips. ___Default:___ true"
                },
                {
                    "name": "Decompile",
                    "lua_type": "boolean",
                    "desc": "Turn the compiled script back into source code (decompile). This replaces the `Source` of each [LuaSourceContainer] with decompiled code. If this is off, `Source` says decompiling is disabled. ___Default:___ true"
                },
                {
                    "name": "SaveBytecode",
                    "lua_type": "boolean",
                    "desc": "If the executor supports `getscriptbytecode`, add the compiled script data (bytecode) to `Source` as a comment. You can decompile it later. This respects `DecompileIgnore`. ___Default:___ false"
                },
                {
                    "name": "DecompileTimeout",
                    "lua_type": "number",
                    "desc": "How many seconds one decompile call can take. If it takes longer, the script stops waiting and writes a timeout message in `Source`. Set to -1 to disable the timeout. ___Default:___ 10"
                },
                {
                    "name": "BytecodeTimeout",
                    "lua_type": "number",
                    "desc": "How many seconds a `getscriptbytecode` call can take. If it takes longer, the script stops waiting and skips the bytecode for that script. Set to -1 to disable the timeout. ___Default:___ 3"
                },
                {
                    "name": "DecompileIgnore",
                    "lua_type": "{Instance | string} | {[Instance | string]: boolean | {[string]: boolean}}",
                    "desc": "Skip decompiling matched [Instance]s and their children. `Source` becomes a short ignored message. You can pass an [Instance], a class name, or `ClassName = {Name1, Name2}`. Set an [Instance] to `false` to skip only that instance, not its children. ___Default:___ {TextChatService}"
                },
                {
                    "name": "SourceCache",
                    "lua_type": "{[Instance]: string} | false",
                    "desc": "Source text to use for these scripts as-is instead of decompiling them. ___Default:___ false"
                },
                {
                    "name": "DecompileJobless",
                    "lua_type": "boolean",
                    "desc": "Only use scripts that are already in the decompile cache. Missing scripts get a short not-found message. This turns on `scriptcache`. ___Default:___ false"
                },
                {
                    "name": "scriptcache",
                    "lua_type": "boolean",
                    "desc": "If the executor supports `getscriptbytecode`, cache decompiled code. This avoids decompiling the same script twice. The cache stays after the script reloads. ___Default:___ true"
                },
                {
                    "name": "RecoverScriptsFromAssets",
                    "lua_type": "boolean",
                    "desc": "Recover the original `Source` of scripts that were published as assets. Changes made after publishing are not included. ___Default:___ true"
                },
                {
                    "name": "IsolatePlayers",
                    "lua_type": "boolean",
                    "desc": "Put every [Player] under a top-level `\"Players\"` Folder instead of inside the [Players] service. This turns on `SaveNotCreatable`. If both are on, this option is used instead of `IsolateLocalPlayer`. ___Default:___ false"
                },
                {
                    "name": "IsolateLocalPlayer",
                    "lua_type": "boolean",
                    "desc": "Save the LocalPlayer as a Folder named `\"LocalPlayer\"` instead of a [Player] object. This is ignored if `IsolatePlayers` is on. ___Default:___ false"
                },
                {
                    "name": "IsolateLocalPlayerCharacter",
                    "lua_type": "boolean",
                    "desc": "Save LocalPlayer.Character as a [Model] named `\"LocalPlayer Character\"`. This saves the character even when characters are normally skipped. ___Default:___ false"
                },
                {
                    "name": "IsolateStarterPlayer",
                    "lua_type": "boolean",
                    "desc": "Put [StarterPlayer]'s children under a top-level `\"StarterPlayer\"` Folder. The original service stays, but it is empty. ___Default:___ false"
                },
                {
                    "name": "SavePlayerCharacters",
                    "lua_type": "boolean",
                    "desc": "Save player characters instead of skipping them. This also saves objects with `Archivable = false`, so `IgnoreNotArchivable` is forced on. ___Default:___ false"
                },
                {
                    "name": "NilInstances",
                    "lua_type": "boolean",
                    "desc": "Include objects that have no parent (they are not under `game`). This needs the executor function `getnilinstances`. When that function exists, it also turns on `SaveNotCreatable`. ___Default:___ false"
                },
                {
                    "name": "ExtraInstances",
                    "lua_type": "{Instance}",
                    "desc": "A list of [Instance]s to add to the normal save. If `mode` is not a valid value, only these Instances (and `Object`, if set) are saved. Passing a list of Instances as an argument fills this list. ___Default:___ {}"
                },
                {
                    "name": "IgnoreList",
                    "lua_type": "{Instance | string} | {[Instance | string]: boolean | {[string]: boolean}}",
                    "desc": "Objects to skip. Use an [Instance] or a class name as a key to skip that object and its children. `ClassName = false` keeps the object but skips its children. `ClassName = {Name1, Name2}` skips objects with those names. You can also pass a list of Instances or class names. ___Default:___ {CoreGui, CorePackages, Packages = false}"
                },
                {
                    "name": "MaxDepth",
                    "lua_type": "number",
                    "desc": "Objects nested deeper than this are moved up under their ancestor at depth `MaxDepth`, so nothing is dropped, only the nesting is lost. This stops very deep hierarchies from overflowing the stack when Roblox Studio opens the file (binary saves opened at 1740 levels deep; XML saves crashed at 1750). Use `math.huge` to disable. ___Default:___ 1000"
                },
                {
                    "name": "IgnoreSpecialProperties",
                    "lua_type": "boolean",
                    "desc": "Do not use the executor function `gethiddenproperty`. Other property reads still work. This can help if your executor crashes or the file is corrupted. ___Default:___ false"
                },
                {
                    "name": "AlternativeWritefile",
                    "lua_type": "boolean",
                    "desc": "Write the file in smaller pieces with `appendfile` instead of one `writefile` call. For binary saves, if `appendfile` fails, it uses `writefile`; if both fail, it switches to XML. ___Default:___ true"
                },
                {
                    "name": "Anonymous",
                    "lua_type": "boolean | {Name: string?, UserId: number?}",
                    "desc": "**RISKY:** Replace LocalPlayer.Name and UserId in the output. `true` replaces them with `\"Roblox\"` and `1`. You can also pass a table with `Name` and/or `UserId`. Name matching ignores case. This can also change other text or numbers that match. ___Default:___ false"
                },
                {
                    "name": "RiskyServicesDisabled",
                    "lua_type": "{UGC: boolean?, Encoding: boolean?, Reflection: boolean?}",
                    "desc": "Turn off services that some games may detect. `UGC` skips [UGCValidationService] (used for some hidden properties). `Encoding` skips [EncodingService]. `Reflection` skips [ReflectionService] (used for class data). Set a flag to `true` to skip that service. If you do not set `RiskyServicesDisabled` yourself, the UGC fallback turns on automatically when `gethiddenproperty` is missing. ___Default:___ {UGC = true, Encoding = false, Reflection = false}"
                },
                {
                    "name": "AvoidFileOverwrite",
                    "lua_type": "boolean",
                    "desc": "If `FilePath` is not set, add (1), (2), ... to the file name instead of overwriting an existing file. ___Default:___ true"
                },
                {
                    "name": "AntiIdle",
                    "lua_type": "boolean",
                    "desc": "Stop Roblox from kicking you for being idle (not moving) for 20 minutes. ___Default:___ true"
                },
                {
                    "name": "CopyToClipboard",
                    "lua_type": "boolean",
                    "desc": "Copy the result to the clipboard (the copy/paste buffer) instead of writing a file. Your executor must support `setrbxclipboard`. Use this only for small saves. ___Default:___ false"
                },
                {
                    "name": "Callback",
                    "lua_type": "((data: string, chunks: {string}) -> ()) | false",
                    "desc": "Call this function with the result instead of writing a file. It receives the full text and a list of chunks. If `CopyToClipboard` is also on, the clipboard is used instead. ___Default:___ false"
                },
                {
                    "name": "IgnoreProperties",
                    "lua_type": "{string}",
                    "desc": "A list of property names to skip on every object. For example: `{\"Tags\", \"AttributesSerialize\"}`. ___Default:___ {}"
                },
                {
                    "name": "IgnoreNotArchivable",
                    "lua_type": "boolean",
                    "desc": "Save objects even when their `Archivable` property is `false`. If this is off, the script skips those objects. ___Default:___ true"
                },
                {
                    "name": "SaveNotCreatable",
                    "lua_type": "boolean",
                    "desc": "Save classes that Roblox says are not creatable. The script replaces them with a class it can create, using `NotCreatableFixes` (usually `Folder`). This turns on automatically with `IsolatePlayers`, `IsolateLocalPlayer`, and `NilInstances` (when `getnilinstances` exists). ___Default:___ false"
                },
                {
                    "name": "NotCreatableFixes",
                    "lua_type": "{string} | {[string]: string | false}",
                    "desc": "Replace a class with a class that can be created. The default replacement is `\"Folder\"`. A list of class names also becomes `Folder`. Built-in changes: [Player], [PlayerGui], [PlayerScripts], [TouchTransmitter], and others become `Folder`; [CloudLocalizationTable] becomes [LocalizationTable]; `Platform` becomes [Part]; `Status` becomes [Model]. Set a class to `false` to skip its replacement. ___Default:___ built-in replacements"
                },
                {
                    "name": "NilInstancesFixes",
                    "lua_type": "{[string]: ((instance: Instance, overrides: table) -> Instance?) | false}",
                    "desc": "Where to put objects that have no parent. For example, it puts [Animator] under an [AnimationController]. Built-in fixes exist for [Animator], [AdPortal], [Attachment], [BaseWrap], and [PackageLink]. Child classes use the parent fix ([Bone]s use the Attachment fix). Set a class to `false` to turn off its fix. ___Default:___ built-in Animator/AdPortal/Attachment/BaseWrap/PackageLink fixes"
                },
                {
                    "name": "IgnoreDefaultProperties",
                    "lua_type": "boolean",
                    "desc": "Skip properties that already have the default value for their class. This only affects XML output. Binary output does not use this option. ___Default:___ true"
                },
                {
                    "name": "IgnorePropertiesOfNotScriptsOnScriptsMode",
                    "lua_type": "boolean",
                    "desc": "Only in `scripts` mode: save properties for [LuaSourceContainer]s and skip properties for all other objects. This does nothing in other modes. ___Default:___ false"
                },
                {
                    "name": "IgnoreDefaultPlayerScripts",
                    "lua_type": "boolean",
                    "desc": "Skip Roblox's default player scripts (`PlayerModule`, `BubbleChat`, `ChatScript`, `PlayerScriptsLoader`, `RbxCharacterSounds`). This can stop some executors from crashing during decompile. ___Default:___ false"
                },
                {
                    "name": "SaveCacheInterval",
                    "lua_type": "number",
                    "desc": "How much XML data the script holds in memory while saving. Lower values update the status more often but are slower. This does not write to disk. When `KillAllScripts` is on, this also sets the script timeout between 20 and 30 seconds. ___Default:___ 0x1600 * 10"
                },
                {
                    "name": "SharedBinaryStrings",
                    "lua_type": "boolean",
                    "desc": "Store the same binary data (meshes, images, ...) only once in the file. This makes saves with repeated data smaller. Files with all unique data can get slightly bigger. This is not an official Roblox format, but Studio can still open the file. ___Default:___ false"
                },
                {
                    "name": "TreatUnionsAsParts",
                    "lua_type": "boolean",
                    "desc": "Change all [PartOperation]s (unions and intersections) into [Part]s. **RISKY:** you lose the merged shape, but executors that cannot read unions will still show visible parts. ___Default:___ false"
                },
                {
                    "name": "ShutdownWhenDone",
                    "lua_type": "boolean",
                    "desc": "Close the game after a successful save. ___Default:___ false"
                },
                {
                    "name": "__DEBUG_MODE",
                    "lua_type": "boolean | ((...any) -> ())",
                    "desc": "Print debug warnings for unusual cases. If you pass a function, the script uses it instead of `warn`. ___Default:___ false"
                }
            ],
            "source": {
                "line": 3705,
                "path": "saveinstance.luau"
            }
        },
        {
            "name": "OptionsAliases",
            "desc": "Map of old option names to new option names for the [UniversalSynSaveInstance.SaveInstanceOptions] table.\nFormat: `{ OldName = NewName }`\nThe script reads these before your options, so you cannot change them after the script starts.",
            "fields": [
                {
                    "name": "AnonymousMode",
                    "lua_type": "string",
                    "desc": "`Anonymous`"
                },
                {
                    "name": "Blacklist",
                    "lua_type": "string",
                    "desc": "`IgnoreList`"
                },
                {
                    "name": "ClassIgnoreList",
                    "lua_type": "string",
                    "desc": "`IgnoreList`"
                },
                {
                    "name": "Clipboard",
                    "lua_type": "string",
                    "desc": "`CopyToClipboard`"
                },
                {
                    "name": "Compress",
                    "lua_type": "string",
                    "desc": "`CompressionMode`"
                },
                {
                    "name": "Compression",
                    "lua_type": "string",
                    "desc": "`CompressionMode`"
                },
                {
                    "name": "Debug",
                    "lua_type": "string",
                    "desc": "`__DEBUG_MODE`"
                },
                {
                    "name": "DecompileScripts",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "Decompiler",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "DecompilerTimeout",
                    "lua_type": "string",
                    "desc": "`DecompileTimeout`"
                },
                {
                    "name": "EmbedBytecode",
                    "lua_type": "string",
                    "desc": "`SaveBytecode`"
                },
                {
                    "name": "FileName",
                    "lua_type": "string",
                    "desc": "`FilePath`"
                },
                {
                    "name": "IgnoreArchivable",
                    "lua_type": "string",
                    "desc": "`IgnoreNotArchivable`"
                },
                {
                    "name": "IgnoreClasses",
                    "lua_type": "string",
                    "desc": "`IgnoreList`"
                },
                {
                    "name": "IgnoreDefaultProps",
                    "lua_type": "string",
                    "desc": "`IgnoreDefaultProperties`"
                },
                {
                    "name": "IgnoreInstances",
                    "lua_type": "string",
                    "desc": "`IgnoreList`"
                },
                {
                    "name": "IgnoreProperty",
                    "lua_type": "string",
                    "desc": "`IgnoreProperties`"
                },
                {
                    "name": "IgnoreRobloxPlayerScripts",
                    "lua_type": "string",
                    "desc": "`IgnoreDefaultPlayerScripts`"
                },
                {
                    "name": "InstanceIgnoreList",
                    "lua_type": "string",
                    "desc": "`IgnoreList`"
                },
                {
                    "name": "InstancesBlacklist",
                    "lua_type": "string",
                    "desc": "`IgnoreList`"
                },
                {
                    "name": "IsolatePlayerGui",
                    "lua_type": "string",
                    "desc": "`IsolateLocalPlayer`"
                },
                {
                    "name": "LocalPlayer",
                    "lua_type": "string",
                    "desc": "`IsolateLocalPlayer`"
                },
                {
                    "name": "Model",
                    "lua_type": "string",
                    "desc": "`Object`"
                },
                {
                    "name": "NoXML",
                    "lua_type": "string",
                    "desc": "`Binary`"
                },
                {
                    "name": "Path",
                    "lua_type": "string",
                    "desc": "`FilePath`"
                },
                {
                    "name": "Players",
                    "lua_type": "string",
                    "desc": "`IsolatePlayers`"
                },
                {
                    "name": "Progress",
                    "lua_type": "string",
                    "desc": "`ShowStatus`"
                },
                {
                    "name": "Root",
                    "lua_type": "string",
                    "desc": "`Object`"
                },
                {
                    "name": "SaveAsBinary",
                    "lua_type": "string",
                    "desc": "`Binary`"
                },
                {
                    "name": "SaveCharacters",
                    "lua_type": "string",
                    "desc": "`SavePlayerCharacters`"
                },
                {
                    "name": "SaveLocalPlayer",
                    "lua_type": "string",
                    "desc": "`IsolateLocalPlayer`"
                },
                {
                    "name": "SaveModel",
                    "lua_type": "string",
                    "desc": "`Object`"
                },
                {
                    "name": "SaveNil",
                    "lua_type": "string",
                    "desc": "`NilInstances`"
                },
                {
                    "name": "SaveNilInstances",
                    "lua_type": "string",
                    "desc": "`NilInstances`"
                },
                {
                    "name": "SaveNonCreatable",
                    "lua_type": "string",
                    "desc": "`SaveNotCreatable`"
                },
                {
                    "name": "SavePlayerGui",
                    "lua_type": "string",
                    "desc": "`IsolateLocalPlayer`"
                },
                {
                    "name": "SavePlayers",
                    "lua_type": "string",
                    "desc": "`IsolatePlayers`"
                },
                {
                    "name": "SavePlayersData",
                    "lua_type": "string",
                    "desc": "`IsolatePlayers`"
                },
                {
                    "name": "SaveScripts",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "SaveStarterPlayer",
                    "lua_type": "string",
                    "desc": "`IsolateStarterPlayer`"
                },
                {
                    "name": "ScriptDecompile",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "ShowProgress",
                    "lua_type": "string",
                    "desc": "`ShowStatus`"
                },
                {
                    "name": "Status",
                    "lua_type": "string",
                    "desc": "`ShowStatus`"
                },
                {
                    "name": "StatusText",
                    "lua_type": "string",
                    "desc": "`ShowStatus`"
                },
                {
                    "name": "UseDecompiler",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "Verbose",
                    "lua_type": "string",
                    "desc": "`__DEBUG_MODE`"
                },
                {
                    "name": "timeout",
                    "lua_type": "string",
                    "desc": "`DecompileTimeout`"
                }
            ],
            "source": {
                "line": 3758,
                "path": "saveinstance.luau"
            }
        },
        {
            "name": "OptionsAliasesInverse",
            "desc": "Map of old option names that change a true/false value to the opposite.\nFormat: `{ OldName = NewName }`\nThe script flips the value before it uses it. `noscripts = true` sets `Decompile = false`.\n`DisableCompression = true` sets `CompressionMode = false`. `Overwrite = true` sets `AvoidFileOverwrite = false`.\nThe script reads these before your options, so you cannot change them after the script starts.",
            "fields": [
                {
                    "name": "DisableCompression",
                    "lua_type": "string",
                    "desc": "`CompressionMode`"
                },
                {
                    "name": "NoDecompile",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "noscripts",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "NullifyScripts",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "Overwrite",
                    "lua_type": "string",
                    "desc": "`AvoidFileOverwrite`"
                },
                {
                    "name": "RemovePlayerCharacters",
                    "lua_type": "string",
                    "desc": "`SavePlayerCharacters`"
                },
                {
                    "name": "RemovePlayers",
                    "lua_type": "string",
                    "desc": "`IsolatePlayers`"
                },
                {
                    "name": "SkipScripts",
                    "lua_type": "string",
                    "desc": "`Decompile`"
                },
                {
                    "name": "XML",
                    "lua_type": "string",
                    "desc": "`Binary`"
                }
            ],
            "source": {
                "line": 3775,
                "path": "saveinstance.luau"
            }
        }
    ],
    "name": "UniversalSynSaveInstance",
    "desc": "This module saves the current place, one [Instance] (a Roblox object), or a\ngroup of [Instance]s to a `.rbxl`/`.rbxm` (binary) or `.rbxlx`/`.rbxmx` (XML)\nfile.\n\nAll options are optional. See\n[UniversalSynSaveInstance.SaveInstanceOptions] for all options. Option names are not\ncase-sensitive. Old names from [UniversalSynSaveInstance.OptionsAliases] and\n[UniversalSynSaveInstance.OptionsAliasesInverse] also work.\nThe most common options are at the top of\n[UniversalSynSaveInstance.SaveInstanceOptions]. Related options are grouped\ntogether, and advanced or rarely used options are at the bottom.",
    "source": {
        "line": 3647,
        "path": "saveinstance.luau"
    }
}