The Output is a panel in Roblox Studio, that displays printed strings or error messages. The
The output can be used for different things. One of the main ways to use the output is to debug code. When testing a really big script, you may want to throw a few print commands to the output. You can even use it to throw an error using the error function. Other times, beginning scripters will use the output to learn how to script. When you create a new script object in Roblox Studio, the code that it has is:
When you press the green play button at the top of the screen with the output panel open, without changing the script, you will see that it says
When first learning how to script, you will want to have the output open. To do this, perform the following steps:
After running that code in Studio, you should have this in your output:
This is a test print to the output. 1 time(s) so far This is a test print to the output. 2 time(s) so far This is a test print to the output. 3 time(s) so far This is a test print to the output. 4 time(s) so far This is a test print to the output. 5 time(s) so far
Using the output isn't really that hard. Once you learn the
You can also use the output to induce your own errors. The error function will also stop a script from running. Use this code to induce your own error:
Your output should have red text in it, that says
This is my own error!.
The output is a useful tool.