Summary
This plugin allows you to compile your scripts through the command line, and view their disassembly (bytecode). The primary uses of this plugin are learning and code optimization.
Usage
This plugin works entirely from the Roblox Studio Command line. If you aren’t familiar with it, here it is:
![]()
Once you’ve enabled the command line, all you have to do is open up the script that you wish to compile, then type in “–bytecode”. This will open a window that displays the bytecode contents of your script (see below for example):
Flags
If you have used any command line interface before, you might be familiar with flags, which are special arguments used to modify the behavior of a command. This plugin comes with three flags, all specified below (note, flags are order-independent and case-sensitive):
Disables syntax highlighting, default: false
-nhl
The optimization level at which the compiler will be ran, default: 2
-O0, -O1, -O2
This will output the bytecode into a module script in ServerStorage (in case you want to copy and paste it)
NOTE: This will only work if the length of the bytecode is <= 200,000 characters (Roblox limitation). Ideally, nobody will have an issue with this, but if you do: please let me know so I can update the plugin to work around this limitation.
-mout
Example usages of --bytecode with a flag:
(This will run the bytecode compiler then display without syntax highlighting)
--bytecode -nhl
(This will run the bytecode compiler at optimize level 0)
--bytecode -O0
(This will run the bytecode compiler at optimize level 1 then display without syntax highlighting)
--bytecode -nhl -O1
Additional Notes
When you attempt to use the plugin, it might ask you this:
Just make sure to click “Allow” as the plugin needs to access an externally hosted Luau compiler to function.
When you attempt to use the plugin with the “-mout” flag, it will ask for script injection privileges. Without these privileges, the plugin will fail to create and output a module script to ServerStorage.


