RBXLegacy - Introduction to Scripting

Introduction to Scripting

A script is a series of instructions for a program to follow to create custom behavior. In order to give these instructions, you must provide the instruction in words the program can understand. ROBLOX uses a language called Lua to communicate these instructions. In this set of tutorials, we will go over the basic instructions you can use in ROBLOX Studio to create games.

To get started, go to the top of the screen and click on View and click on Output. Command should be at the bottom already by default.


The first instruction, or function, we will cover is called print, which makes text appear in the Output window. In the Command Bar, type:

print("Hello world!")

After you are done typing, hit enter. The Output panel will show both the instruction and the message we wanted to print: