Skip to main content
CourseFlix

Lua Scripting: Master complete Lua Programming from scratch

13h 34m 51s
English
Paid

Welcome. This course helps you learn Lua from the ground up. You install Lua on your system and write your first scripts. I use Linux in the videos, but you can work on Windows or macOS with no problem. If you do not want to install Lua, you can use Replit to run Lua in your browser.

What You Will Learn

This course has three clear parts. Each part builds on the last to help you grow your Lua skills.

Lua Basics

In this part, you learn the core ideas of Lua. You work with variables, expressions, if statements, loops, and functions. You also learn about metatables and key modules in Lua. You can follow this part even if you have never coded before.

Lua with C

This part is for programmers who want to use Lua inside C programs. You learn how to embed Lua, call Lua from C, and expose C features to Lua. You build a small project that moves a player in C with Lua code. If you do not plan to mix Lua and C, you can skip this part.

Lua for Roblox Basics

This part is a short set of bonus lessons. You learn how Lua appears inside Roblox Studio. You see how Lua controls game logic and how to move around the Roblox Studio interface.

Who This Course Helps

You can use this course as a beginner or as a developer who wants a clear view of modern Lua. The final lessons show how Lua fits into Roblox, but the course itself focuses on the Lua language.

Important Note

This is not a Roblox course. It is a Lua programming course with a small bonus section on Roblox usage.

About the Author: udemy

udemy thumbnail

Udemy is a global online marketplace for teaching and learning. It connects students with instructors who share skills in many fields.

Who Uses Udemy

Millions of learners use Udemy to gain skills for work and personal growth. Companies, governments, and nonprofits also use Udemy to train their teams.

What Udemy Offers

Udemy provides a curated set of business and technical courses. These courses help teams build practical skills and support ongoing learning at work.

Watch Online 92 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 92 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Introduction and Motivations
All Course Lessons (92)
#Lesson TitleDurationAccess
1
Introduction and Motivations Demo
03:14
2
A Message for Roblox Users
01:40
3
History and Language Evolution
28:16
4
Using Lua with REPL
03:31
5
Installing Lua on Linux
02:03
6
Installing Lua on MacOS
01:04
7
Installing Lua on Windows
11:30
8
Our First Lua Script
09:06
9
Variables
16:36
10
Older Lua Versions and REPL
05:27
11
Proposed Activity: Variables
02:10
12
Variables Activity Solution
04:16
13
Incrementing and Decrementing Variables
06:54
14
Conditionals
09:18
15
Elseif
11:26
16
Proposed Activity: Conditional Statements
04:14
17
Conditionals Activity Solution
10:26
18
Logical Operators
06:09
19
String Manipulation
19:14
20
Multi-line Strings
04:38
21
Multiple Assignment
03:36
22
Standard Library Modules
10:18
23
The For Loop
06:17
24
The While Loop
10:59
25
Loop Options
02:32
26
Variable Scope
04:02
27
Local Scope and Lua Chunks
02:38
28
Syntax & Semantic Errors
04:14
29
Solving Logical Mistakes
02:50
30
Input Values from the Keyboard
13:25
31
Handling Input Options
05:44
32
Finding Distance Between Points
09:59
33
Finding Angle Between Points
12:00
34
Loop Activity Example
05:54
35
Loop Activity Solution
08:36
36
An Introduction to Functions
14:14
37
Tables in Lua
22:16
38
Tables Example
08:04
39
Proposed Activity: Reading Table Entries
06:53
40
Table Activity Solution
09:27
41
Tables as Configuration Files
04:40
42
Tables as Matrices
05:45
43
Proposed Formative Project
16:20
44
Moving Forward
02:09
45
Metatables
19:57
46
Object-Oriented Programming in Lua
21:52
47
Creating Classes and Objects
13:35
48
Higher-Order Functions and Closures
07:14
49
Variadic Functions
07:04
50
Working with Lua and C
02:16
51
C Project Folder Structure
12:50
52
Executing Lua File From C
19:48
53
Get Lua Global Values in C
12:02
54
The Stack
05:52
55
Push Pop and Peak
01:55
56
Calling Lua Functions From C
12:21
57
Checking and Handling Script Errors
05:10
58
Calling C Functions in Lua
17:44
59
Userdata
05:32
60
Sending and Receiving Userdata
14:34
61
Reading Lua Tables in C
06:03
62
Installing SDL
07:38
63
Creating a SDL Window
13:59
64
The Game Loop
14:26
65
SDL Rendering
11:22
66
Fixing Our Game Loop Timestep
13:55
67
Delta Time
05:49
68
Controlling the Player Movement with Lua
26:01
69
Final Considerations on Integrating Lua and C
06:20
70
Next Steps
04:15
71
Intro to Roblox and Roblox Studio
02:25
72
Installing and Accessing Roblox Studio
05:45
73
Roblox Parts and Properties
12:15
74
Roblox Vectors and Colors
11:02
75
Roblox Object Instance
06:08
76
Proposed Activity: Sun and Moon System Hour
05:48
77
Sun and Moon Activity Solution
09:43
78
Roblox Loops and the Wait Function
07:22
79
Roblox Loops and Conditionals
09:02
80
Roblox Events
10:25
81
Roblox Humanoid Properties
16:44
82
Roblox Players and Characters
10:00
83
Roblox Models and Assets
06:48
84
Roblox Terrain Editor
03:59
85
Roblox Day-Night Lighting & ClockTime
09:19
86
Roblox Leaderboard
08:46
87
Roblox Debugging and Code Inspection
02:53
88
Roblox CFrame
07:47
89
Roblox Following Parts
11:03
90
Roblox Conclusion and Getting Help
05:14
91
Compiling Lua 5.4 on Linux
08:08
92
Congratulations & Other Courses
00:37
Unlock unlimited learning

Get instant access to all 91 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription