First steps, lesson 1
Your first script
Goal: Write a line of Luau and know where its result shows up.
about 4 min3 practice exercises
A script is a list of instructions that Roblox runs for you, top to bottom. Luau is the language those instructions are written in. It grew out of Lua, which is why people still search for "Roblox Lua".
The first instruction everyone learns is print. It writes a message to the Output window in Studio. Players never see Output. It is your window into what your code is doing.
print("Hello, Roblox!")
print("Coin Quest is loading")
Each print writes one line, in the order the lines appear. The text inside the quotes is called a string. The quotes tell Luau where the text starts and ends, and they are not printed.
Throughout this course you will build the logic for Coin Quest, a small game where players collect coins to open a gate. The practice here checks your answers with fixed rules. To see code really run, do the Studio step at the end of each lesson.
Try it in Studio
Optional, and the best way to make it stick.
In Explorer, hover over ServerScriptService, click + and add a Script. Replace its contents with a print of your own, press Play, and find your message in Output (View > Output).
Sources
Checked against Roblox's documentation on . The lesson is in our own words; these pages are the source of truth.