← Roblox · All tutorials

Roblox

Roblox Studio: Create Your First Luau Script

By JFG News Writer · Updated Nov 5, 2026
Neon holographic panels floating above a gray cube
Illustration: JustForGamerz

Add a Script under ServerScriptService, print Hello world!, and read the result in the Output window.

easy15 minRoblox Studio (Creator Hub fundamentals docs, current as of Nov 2026)
0/6 steps done

Requirements

  • Roblox Studio installed and signed in
  • A place/file open with Explorer visible
  • Output window enabled (Window menu)

Steps

  1. 1

    Open ServerScriptService

    In the Explorer window, find ServerScriptService—the container meant for server scripts.

  2. 2

    Insert a Script

    Hover ServerScriptService, click the + button, and choose Script. Studio opens the Script Editor with default sample code.

  3. 3

    Rename the script

    Right-click the new Script, choose Rename, and call it something clear such as PracticeScript so you can find it later.

  4. 4

    Use print with a string

    New scripts include a print call. Keep or type: print("Hello world!"). The text inside quotes is a string data type.

  5. 5

    Enable Output and playtest

    From Studio’s Window menu, open Output if it is hidden. Start a playtest. You should see Hello world! in Output. Click Stop when finished.

  6. 6

    Try a local variable

    Replace the hello line with a local variable assignment such as local myAnimal = "Porcupines" and then print(myAnimal). Playtest again to confirm your string appears. Prefer local variables unless you have a specific reason for globals.

Tips

  • Variable names cannot include spaces; camelCase names like playerPoints are easier to read.
  • Concatenate strings with two dots, for example print("I like " .. firstAnimal).
  • Double-click the script in Explorer anytime to reopen the editor.