Why convert LUAU to RBXM?
People convert to .RBXM to package a script as a reusable Roblox model that can be shared, backed up, or inserted into another place. The .rbxm wraps the instance (its class, name, and properties) around your Luau source.
How to convert LUAU to RBXM
Roblox Studio (Save to File) EASIEST
Paste your code into a new Script or ModuleScript in the Explorer, right-click the instance, choose Save to File, and set the type to Roblox Model Files (*.rbxm).
Roblox Studio (XML variant) FREE
In the same Save to File dialog pick Roblox XML Model Files (*.rbxmx) if you want a text-inspectable model instead of the binary .rbxm.
About these formats
A .luau file is a plain-text source code file written in Luau, the scripting language Roblox derived from Lua 5.1 with an added gradual type system. It holds the code that drives Roblox…
Open .LUAU details →An RBXM file is a Roblox model saved in binary format by Roblox Studio. It can hold 3D parts, scripts, GUI elements, or any combination of Roblox objects. The only program that opens it is…
Open .RBXM details →Quality & what to watch
- The
.rbxmstores an instance (Script/ModuleScript), not raw text, so pick the correct script class for how the code should run. - Right-clicking the workspace instead of the instance saves the wrong object; select the script first.
.rbxmis binary; use.rbxmxif you need to read or diff the contents.
Frequently asked questions
Do I need Roblox Studio?
.rbxm container around your script.Script or ModuleScript?
How do I get the code back?
.rbxm back into Studio.