VINDICTA.TOP
Instances · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

saveinstance

Serializes the game DataModel (or a subtree) to an RBXL/RBXLX file.

function saveinstance(optionsoptionstable?Configuration table. Keys: FilePath (string), DecompileMode (string: "sponge"|"none"), SavePlayers (boolean), ShowStatus (boolean), IgnoreDefaultProps (boolean), IgnoreList (table of class names).?: table): void

Usage

Save full game
saveinstance({
  FilePath = "saved_game.rbxlx",
  DecompileMode = "sponge",
  ShowStatus = true,
})
Save workspace only
saveinstance({
  FilePath = "workspace_only.rbxlx",
  IgnoreList = {"Chat", "Players"},
  DecompileMode = "none",
})

Options

KeyTypeDefaultDescription
FilePathstring"game.rbxlx"Output file path in the workspace.
DecompileModestring"sponge"Script decompilation mode. "sponge" uses the Sponge Decompiler, "none" skips.
SavePlayersbooleanfalseInclude Player instances and their character models.
ShowStatusbooleantruePrint progress messages to the executor console.
IgnoreDefaultPropsbooleantrueOmit properties that match their class defaults.
IgnoreListtable{}Array of class names to exclude from serialization.