AcediaDocumentation
Guides

Partial Instance exports

Know what saveinstance writes before using an export.

saveinstance walks an Instance tree and writes an .rbxmx file into the workspace.

Save an Instance tree

local root = Instance.new("Folder")
root.Name = "Example"

local flag = Instance.new("BoolValue")
flag.Value = true
flag.Parent = root

local path = saveinstance(root, { FileName = "example" })
print(path)
root:Destroy()

What the export includes

  • At most 20,000 Instances.
  • A fixed set of properties representable as strings, booleans, numbers, or EnumItems.
  • No guarantee of every property type, Instance reference, geometry field, script source, or piece of metadata.

Check the output: A successful write means a file was created, not that the export is a complete place or model backup.

Supported property names include Anchored, BackgroundTransparency, CanCollide, CanQuery, CanTouch, CastShadow, ClipsDescendants, Disabled, Enabled, Health, Locked, Massless, Material, MaxHealth, Reflectance, Shape, Text, TextScaled, TextSize, Transparency, Value, Visible, WalkSpeed, and ZIndex. Class and name fields are handled separately.

setrbxclipboard uses the same serializer when given an Instance. When given a string, it copies that string to the system clipboard instead.

On this page