Aliases

None.

Arguments

string
default:"\"savefile.lua\""
The output filename.

Returns

boolean
True when the output file was opened and written; false if it could not be opened.
Also reads FileName from a second-argument options table, e.g. saveinstance(game, ). The first Instance argument is not used as a subtree root. This is not a full RBXL/RBXM exporter; inspect the serialization contract below. Related types: Instances types & behavior.

Example