2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Intro to coding

<>

Using the Story Games sample as a guide, this tutorial acts as an introduction to coding in Roblox Studio using the Luau programming language. As you follow each chapter, you will learn how to create a story game where players can replace placeholder words with their own answers.

This lesson is intended for readers who are brand new to coding concepts and working in Studio. If you are familiar with both, try another beginner lesson plan or jump straight to building your first game.

</>

Note

If you don't have a Roblox account, Studio active on your device, or familiarity with Studio's UI, see the Studio lesson.

Course contents

Chapter 1 - Get started

Learn how to [open and customize](/docs/roblox-tutorials-curriculums-coding-get-started) the template's workspace so that you can work with your main script.

Chapter 2 - Work with variables

Learn how to [use variables](/docs/roblox-tutorials-curriculums-coding-work-with-variables) to ask players questions and use their answers within your story.

Chapter 3 - Test and save

Learn how to [playtest your story](/docs/roblox-tutorials-curriculums-coding-test-and-save) and publish your work to Roblox.

Chapter 4 - Customize strings

Learn how to [style your code](/docs/roblox-tutorials-curriculums-coding-customize-strings) with extra punctuation and line breaks.

Chapter 5 - Next steps

Learn where you can [find more tutorials](/docs/roblox-tutorials-curriculums-coding-next-steps) about coding for games.