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 the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.

Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.

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

Course content

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

Related courses

  • GLSL Shaders from Scratch thumbnail

    GLSL Shaders from Scratch

    By: SimonDev
    This course is designed for developers who want to learn how to create impressive visual effects.
    20 hours 11 minutes 38 seconds
  • PS1 Programming with MIPS Assembly & C thumbnail

    PS1 Programming with MIPS Assembly & C

    By: Gustavo Pezzi
    This course is a deep dive into the world of PlayStation programming! We'll explore the PS1 hardware, understand its sub-components, and learn how to code games
    34 hours 39 minutes 27 seconds 5 / 5
  • Master the Lua Scripting Language thumbnail

    Master the Lua Scripting Language

    By: Gustavo Pezzi
    This course is a comprehensive immersion in the Lua programming language - one of the most popular scripting languages in the world.
    13 hours 59 minutes 27 seconds

Frequently asked questions

What is Lua Scripting: Master complete Lua Programming from scratch about?
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…
Who teaches Lua Scripting: Master complete Lua Programming from scratch?
Lua Scripting: Master complete Lua Programming from scratch is taught by Udemy. You can find more courses by this instructor on the corresponding source page.
How long is Lua Scripting: Master complete Lua Programming from scratch?
Lua Scripting: Master complete Lua Programming from scratch contains 92 lessons with a total runtime of 13 hours 34 minutes. All lessons are available to watch online at your own pace.
Is Lua Scripting: Master complete Lua Programming from scratch free to watch?
Lua Scripting: Master complete Lua Programming from scratch is part of CourseFlix's premium catalog. A CourseFlix subscription unlocks the full video player; the course description, table of contents, and preview information are available to everyone.
Where can I watch Lua Scripting: Master complete Lua Programming from scratch online?
Lua Scripting: Master complete Lua Programming from scratch is available to watch online on CourseFlix at https://courseflix.net/course/lua-scripting-master-complete-lua-programming-from-scratch. The page hosts every lesson with the integrated video player; no download is required.