saveplace
Serializes the current DataModel to the game's binary place format.
Syntax
saveplace(options: SaveInstanceOptions?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
options | SaveInstanceOptions? | Optional settings created with SaveInstanceOptions.new() |
Description
saveplace saves the current place as a binary .rbxl file. If FilePath is empty, Volt generates a filename. If a supplied path has no extension, .rbxl is appended; an existing extension is left unchanged.
See saveinstance for every option.
Example
local options = SaveInstanceOptions.new()
options.FilePath = "exports/current-place.rbxl"
options.SaveNilInstances = false
options.SavePlayerCharacters = false
options.SavePlayers = false
saveplace(options)
print(isfile("exports/current-place.rbxl")) -- trueOptions may be omitted:
saveplace()Related Functions
saveinstance- Serialize an instance or selection