Learn Roblox Scripting
Write real Roblox scripts in Lua and play the game right next to your code. Free, with AI hints and a certificate, on any computer, Chromebook or phone.
89,203+ codders enrolled
24 lessons24 challenges74 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Quizzes to test your knowledge
Free certificate of completion
Try a Roblox script right here
Three small games from the course. Change the script in the editor, press Play, and walk through what you wrote.
Touching the lava sets the player's Health to 0. Change that 0 on line 6 to 50, press Play, and the lava only hurts.
local lava = script.Parent
lava.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end)
Syllabus
This section is part of the Lua Journey. The full syllabus has more sections - click any preview below to view it on the Journey page.
- Section 1Fundamentals90 lessons
- Section 2Logic & Flow54 lessons
- Section 3Object Oriented Programming70 lessons
- Section 4Introduction To Luau73 lessons
Section 5
Roblox Game Scripting
Start sectionStartExpandCollapseScript real Roblox games in Luau and play them in your browser: lava floors, coins, leaderboards, jump pads, button doors, moving platforms and checkpoints, ending with your own obby.Scripts and Parts
4 lessons413Loops and Functions
6 lessons619Events and Players
6 lessons618Game Mechanics
7 lessons721Your First Game
1 lesson13
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
Code Anywhere
Take your coding journey on the go! No setup, no downloads - just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.
You're Not Alone
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time - reassigning the name simply points it to a new value.
Earn a Certificate
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn Roblox scripting with Coddy
- Your script and your game sit side by side. Press Play and walk your character through what you just wrote, with W A S D on a keyboard or a thumbstick on a touch screen. Press Check and watch a test player walk the same route the grader walks.
- It runs in the browser, so you can learn on a school Chromebook, a tablet or a phone. Roblox Studio only runs on Windows and macOS. Here there is nothing to install and no Roblox account to sign in to.
- The Roblox API you will meet in every real game:
Instance.new,workspace, a part'sPosition,Size,ColorandTransparency, theTouchedevent,Humanoid,Playersandleaderstats,task.wait,ClickDetectorandTweenService. The engine copies Roblox's own defaults, such as respawning after 5 seconds and aJumpHeightof 7.2, so the Luau you write here is the Luau you write in Studio. There you also build the parts your script expects, which each lesson here builds for you. - 24 lessons in 5 chapters, each one ending in a working game mechanic: a vanishing bridge, a lava floor, a coin collector, a jump pad, a button door, a moving platform, checkpoints and a finish line. The last lesson puts them together into your own obby.
Frequently asked questions about Roblox scripting
What coding language does Roblox use?
+= and string interpolation. The Roblox engine itself is written in C++, but you never write C++ to make a Roblox game: every script in Roblox Studio is Luau. Plain Lua mostly runs unchanged as Luau, which is why many people still call it Roblox Lua.How do I start scripting on Roblox?
workspace.Lava or script.Parent), changes its properties (Color, Size, Transparency), and connects a function to an event so code runs when something happens (Touched, PlayerAdded, MouseClick). This course teaches them in that order, one small game per lesson. In Roblox Studio you add a script by hovering over a part or ServerScriptService in the Explorer, pressing the plus button and choosing Script.Do I need Roblox Studio to learn Roblox scripting?
Can I learn Roblox scripting on a Chromebook or a phone?
Is this the real Roblox?
Touched, Humanoid, Players, leaderstats, task.wait, ClickDetector, TweenService and a few more. It copies Roblox's defaults and quirks on purpose, so what you learn transfers to Studio. It has no client and server split (no RemoteEvents), no GUI and only simple physics (walking, jumping, falling and touching), which are the next things to learn in Studio. Coddy is not affiliated with or endorsed by Roblox Corporation. Roblox and Luau are trademarks of Roblox Corporation.