Practical uses
- Embed scripting inside larger applications
- Create game behavior and modifications
- Configure editors and infrastructure tools
- Build lightweight automation
A small, simple scripting language used in games, mods and apps.
Lua is a small scripting language (the interpreter is about 300KB) that many programs embed so users can script them, including Roblox, World of Warcraft addons, Neovim and Redis. Its short, simple syntax makes it a good first language, especially if you are interested in game scripting.
Install the standalone interpreter to follow the lessons. For games, LÖVE (love2d.org) is a free 2D engine, and Roblox Studio has its own version of Lua (Luau) built in.
winget install DEVCOM.Lua
# Or scoop install lua
lua -v # Lua 5.4.x
lua hello.lua # run a file
lua # interactive REPL
# For games: download LÖVE from https://love2d.orgLearn the basics first, then pick up these tools when a project needs them.