Command Bar in Roblox Studio: What It Is and How to Use It
The Command Bar is a Roblox Studio tool that lets creators run Luau code without putting it in a script. It belongs to the editor that creators use, and it is documented as part of Studio's interface. The slash commands in a live game's chat are a separate feature that a creator builds.
Roblox's creator documentation (Studio overview, edited 22 October 2026 in the public docs repository) describes the current version. Two points differ from many older guides: the bar is opened from the Script tab or the Window menu, not from a View tab, and most of its newer features sit behind a beta setting.
Opening it
There are three ways to reach the Command Bar:
- the Script tab of the Studio toolbar,
- Window, then Script, in the menu,
- the shortcut Ctrl+9 on Windows or Cmd+9 on Mac, which jumps to the bar from anywhere in Studio.
What it does
The bar executes Luau, Roblox's scripting language, outside of scripts. That makes it suited to quick tests and one-off edits while you build. The code runs when you press Run and is not stored as a script in the place.
Features of the multi-line version
Most of the features below need File, then Beta Features, then Multi-line Command Bar to be switched on.
| Feature | How it works |
|---|---|
| Multiline editing | Press Enter to add a line. The bar starts with 2 lines and grows to 10 |
| Run | Click Run, or press Ctrl+Enter (Cmd+Enter on Mac) |
| History | The last 10 executed commands appear under History, on the Recent tab. Click one to load it, move with the up and down keys, or scrub with Ctrl/Cmd plus the arrows |
| Saved commands | Save with the Save button or Ctrl+B (Cmd+B), and reopen them from the Saved tab |
| Editor support | Autocomplete, Luau linting, go to declaration, function filter, Code Assist and multi-cursor |
Command Bar versus other "commands"
- Chat commands. Roblox's TextChatService has built-in chat commands for muting other players and using avatar emotes, and a creator can add custom ones with a TextChatCommand object, each with up to two aliases. Players type these in the chat input bar of an experience. The Command Bar is a different tool that takes Luau code in Studio.
- The Output window. Output displays errors, engine messages and printed text. The Command Bar is where you type code.
Tips
- Turn on the multi-line beta before writing anything longer than one line.
- Try a command that edits many objects on a copy of the place first, so a mistake does not touch the version you publish.
- Keep useful snippets in Saved commands instead of rewriting them.
Related terms
- R6: the legacy avatar rig that Studio's Rig Builder can insert.
- KorBlox Deathspeaker: an avatar bundle.
- Roblox items, codes and events glossary: item and event terms.
FAQ
What is the Command Bar in Roblox Studio?
A bar that runs Luau code outside scripts, used by creators for quick tests and one-off edits.
How do I open the Command Bar?
Use the Script tab, the Window then Script menu, or press Ctrl+9 (Cmd+9 on Mac).
Can players use the Command Bar in a live game?
No. It belongs to Studio. A live experience can offer chat commands that its creator defines, but those are a different feature.
How many commands does the history keep?
The last 10 executed commands.