Learn Lua

Learn Lua from variables and tables through functions, metatables, closures, coroutines and modules. Run every example in the browser, free.

Frequently Asked Questions

Is the Lua course on CodeAcademix free?

Yes. Every lesson in the Lua track is free to read and every code example is free to run in the browser. No credit card, download or local install is required to start.

Do I need to install anything to learn Lua?

No. CodeAcademix runs Lua code directly in your browser, so you can write and execute every exercise without installing a compiler, runtime or editor on your machine.

How long does it take to learn Lua?

Most learners work through the core Lua track in four to eight weeks at roughly an hour a day. Because progress is saved per lesson, you can move faster or slower without losing your place.

What is Lua used for?

Lua is mainly used for game scripting, Roblox, Neovim config and embedded scripting. The CodeAcademix track teaches the language through practical examples drawn from those areas.