When testing and games, it’s useful to see the output and errors the game creates. When running in Roblox Studio, the Output window shows all of these messages, but when testing on an online server, these messages should be accessed using the developer console.
Opening the Console
There are various ways to open the developer console:
|Platform / Device||Method|
|Mac||Hold down Fn and press F9|
|Mobile (phone or tablet)||Type
Notes About the Console
- The console records messages even if you’re not logged into your game. When you enter the game and open the console, you’ll see messages from before you joined. This can be useful when someone notices a bug in your game but aren’t there the moment it happens.
- Each message has a timestamp localized to your time zone.
- There is a limit to how many messages are stored.
Local Console and Server Console
Roblox games run two types of scripts:
Script|Scripts. The basic difference is:
LocalScriptruns on client machines (the computer the player is using) and any output of local scripts will show in the local console.
Script(server script) runs on Roblox’s servers. Output from server scripts in your game will show in the server console.
Anyone running a game can see local messages (messages produced on the client machine). Only the creator of a game can see the server console.
Pressing the gear icon in the console will show additional options, namely filters. The console typically shows all messages, but if you want to toggle whether types of messages are visible or not, click the corresponding color.
|White||Output message||Messages generated by calls to the
|Blue||Informational message||Messages that are generated by the game that aren’t errors or custom output statements.|
|Orange||Warning message||These messages indicate a potential problem that is not a critical issue.|
|Red||Error message||These messages indicate that something critical has happened!|
Console Command Bar
In the Server Log tab, you can access a command bar that lets you run arbitrary Lua code in your game. Since it’s in the server console, only the owner of the place can access it.
LocalScript|LocalScriptswhich means it is not the same as the command bar in Studio and cannot run protected functions.