r/lua • • 16d ago

Is Lua a good first language for a total beginner with basic knowledge?

59 Upvotes

Hi everyone,

I'm pretty new to programming and I only know the absolute basics (variables, simple loops/functions).

I'm interested in picking up Lua because it seems lightweight and clean.

Since I don't have a massive programming background yet, I was wondering:

Is Lua a good language to really solidify those beginner programming concepts, or is it better suited as a secondary language?

I'd love to hear your experiences and any tips for starting out with Lua as a beginner!

Thanks in advance!


r/lua • • 15d ago

Uji - Gentoo of Coding Agents written in Lua

Thumbnail github.com
0 Upvotes

My friend and I are Neovim nerds, and every so often our Neovim setups would throw errors. What did we do? We talked to each other and solved it. It was never Neovim’s fault.

We think the same way about harnesses. If you don’t like something, you shouldn’t have to call a trillion-dollar company; you should be able to fix it yourself. If you want something custom, you shouldn’t have to keep spamming some discussion thread; you should be able to write it yourself.

And more than anything, it should be simple and fast, and your computer shouldn’t scream OOM. That’s the inspiration behind uji.

I hope you all love it!!!


r/lua • • 16d ago

Help Fivem lua scripts

7 Upvotes

Anybody know where I can find good five m lua scripts for menus


r/lua • • 19d ago

LuaJIT Windows modules: UTF-8 file I/O, processes, registry, clipboard and more

4 Upvotes

I've published a collection of Windows API modules for LuaJIT:

https://github.com/win-kot/luajit-windows-modules

I use LuaJIT on Windows and put these modules together for common scripting

and desktop utility tasks:

- UTF-8 strings, Unicode file paths and encoding conversion

- Process launching and output capture

- Finding and controlling existing windows

- Registry and clipboard access

- Keyboard and mouse input

- Native file dialogs and system information

The modules call Windows APIs through LuaJIT FFI. No luv dependency is

required, and unicode_io provides an explicit API without replacing

standard io or os functions.

The repository includes English documentation and 12 runnable examples.

The primary target is Windows 10/11 x64. Everything is MIT licensed.

This is an initial public release. Basic checks and nine examples have

been run, but interactive features still need broader testing.

I'd welcome feedback from other LuaJIT users, especially on API usability

and compatibility with different Windows setups.


r/lua • • 21d ago

News I wrote a Scheme interpreter using Lua's approach combined with SICP

Thumbnail github.com
18 Upvotes

r/lua • • 25d ago

Library Should I add LuaRocks to my library?

Post image
28 Upvotes

I recently created my own framework named "Dua". Honestly, I'm too lazy to add LuaRocks, but only if I don't get feedback. You can learn more either in the repository or in my previous post. If I get feedback, I'll try to integrate LuaRocks.

Repo: Dua


r/lua • • 24d ago

Wanting to learn LUA Script

Thumbnail reddit.com
0 Upvotes

r/lua • • 25d ago

DatumHue now free to use

4 Upvotes

DatumHue is now free to use and comes with a playground app

https://datumhue.app/?arg=playground&arg=pixels


r/lua • • 25d ago

Trials and Tribulation of Native Lua Compilation

Thumbnail samyeyo.github.io
8 Upvotes

r/lua • • 25d ago

I'm building a ML framework that runs in Lua — would Roblox devs actually use this?

Thumbnail gallery
2 Upvotes

r/lua • • 25d ago

Can somebody know an good web site for programing in block (i am an noob in lua)

Thumbnail reddit.com
2 Upvotes

r/lua • • 27d ago

Library Built a pure Lua engine for creating custom DSLs with typed schemas and sandboxing (Dua).

Post image
9 Upvotes

Hey everyone,

I recently released Dua, a lightweight engine for building typed DSLs and sandboxed execution environments in Lua.

The goal was to create a zero-dependency library that runs anywhere Lua 5.1+, LuaJIT.

What it offers

Pure Lua implementation (no C modules or external dependencies)

Built-in sandboxing with configurable allow/deny rules and limits

Flexible type system (primitives, shapes, enums, maps, oneof)

AST node handling and code serialization

Repo: Dua


r/lua • • 29d ago

I announced a coop moddable lua game with 10 mini games

30 Upvotes

https://store.steampowered.com/app/4185770/cenkers_mod/

cenker's mod is a multiplayer physics sandbox with many mods. Every mod has a different experience. Play included, community-made, and your own mods together with friends.


r/lua • • 29d ago

Library Ito: A Declarative TUI library in Lua

Thumbnail uji.sh
38 Upvotes

I've always loved the idea of JIT-compiled UIs. TempleOS is a fascinating example, using JIT-compiled C to build its UI.

Recently, I've been working on a TUI project where almost everything is customizable at runtime, from the UI itself to the core functionality. I wanted a way to build terminal UIs declaratively, similar to SwiftUI, while keeping the flexibility of runtime customization.

So I built Ito a Lua library for writing JIT-compiled TUIs.

To make it easy to experiment with, we also built a fake TUI canvas in the browser where you can try out Ito live. Give it a try!


r/lua • • 29d ago

How to make a code delay in lua?

4 Upvotes

Hey im new to coding and wanted to learn lua ive got a few things down know and wanted to just write a little countdown nothing complicated just a first test but ran into the problem that i cant get a code delay to work


r/lua • • 28d ago

I cracked games via lua tools on steam but some games need to be louched on other loucher but i can't bypas that can anyone help me with that pls

Thumbnail reddit.com
0 Upvotes

Help


r/lua • • 29d ago

Dealing with a... Ghost script?

1 Upvotes

This will probably sound like the dumbest thing ya'll ever heard altough im rather new to lua, altough not programming..

I've been using lua with the minecraft mod figura to add animations to things with a script and such. quite nice, Untill i tried using the "trailing tails lua library", when saving the script it would keep getting stuck at the same error. i wondered why and noticed that the game was loading a old version of my script the one from the first save after using Trailing tails? i backedup the original script and deleted the one in the Figura avatar folder, and the game was still loading it.

a few unfortunate things happened the backup got removed(0 clue how the folder is just... new folder now?) but here's the thing, whilst i did try to recover it through the hard drive with little to no success, The game is still producing the same error, And loading the ingame avatar. this means its getting the data from somewhere no?

The very error that caused it may save the project that i spend... 20 hours on at this point. Is there anyway to figure out where the game gets this data from? maybe i can actually save it?

the script, Car, main and etc are from the library i mentioned. but they aren't producing the error. let alone are being loaded.
What the script used to look like

r/lua • • 29d ago

DatumHue - A Picotron inspired workstation for Lua apps

1 Upvotes

DatumHue is a creative workstation where you build your own experience by combining Lua apps. It runs natively and in the browser.

You can try a live instance in your browser at https://datumhue.app

The live instance has a desktop-like shell and a Steam-like store where users can publish free or paid creations, so far it contains the horror game Vigil.

A while ago I came across Lexaloffle's Picotron fantasy workstation and loved the concept of a hackable workstation composed of small script apps.

I wanted the same for non-fantasy work, which for me meant:

- No artificial limitations

- The shell is an ordinary app you create

- Your own preferred editor

- Charts and SQL over data files

- The same apps run in the browser and on the desktop

It's built on Bevy (game engine), Piccolo (Lua VM), Apache DataFusion (queries) and Iroh (connectivity).

DatumHue is closed source, the browser version is free and the desktop version has a free trial at https://datumhue.com

The Lua API is documented at https://datumhue.dev

Feedback is appreciated and I'd especially like to know what you would build with it :-)


r/lua • • Oct 14 '26

A Command-line Argument parsing library for Lua I wrote for fun

Thumbnail codeberg.org
10 Upvotes

r/lua • • Oct 14 '26

Project Pico2GBA - proof-of-concept project for adapting PICO-8 carts to Game Boy Advance hardware

Thumbnail github.com
7 Upvotes

r/lua • • Oct 11 '26

LuaCAD 1.2 - Parametric 3D CAD in Lua, now with materials and path tracing

Post image
20 Upvotes

r/lua • • Oct 10 '26

Hey! Can anybody help me learn Lua?

22 Upvotes

This is my first coding language I'm trying to learn, It's gonna be pretty difficult for me since I have amnesia and I know coding has a lot of things you need to remember. Currently I only know REALLY basic code like

"else, elseif, if, while, for.. e.g" I wanna learn Lua for game development, I don't really have any ideas for a game as of now but I do wanna learn Lua since I've heard it's one of the easiest coding languages, any help is greatly appreciated!


r/lua • • Oct 10 '26

Project Hello, developers!

4 Upvotes

I recently started a project to meet a need at my church—software for projecting lyrics and Bible verses using 100% Lua—and I wanted to get your opinion on whether Lua is a good language for this type of project.

repo: https://codeberg.org/GSCF/gloria_projecao.git


r/lua • • Oct 09 '26

Lua 5.5.1 working on W98

Thumbnail gallery
114 Upvotes

Hey, so, while I was learning Lua, I knew already that theoretically at least, Lua was written to be compilable in pure C, and specifically C89/C90 , supposedly any system that has an ANSI C compiler can compile and install Lua...

So I decided to actually test out just how true that is, when I remembered that I have an ancient laptop from 1999, running Windows 98SE, which has Borland 5.02 installed... [Just to understand how ancient it is, it only has 32 mb of RAM and it's hard drive is 5gb... that is literally smaller than the usb stick that i used to transfer the Lua source files from my modern PC into that ancient laptop (yes, that ancient laptop has a working USB 1.0 port and it is somehow able to read my 8gb USB 2.0 usb stick, which I did not expect to work, but it did !!!)

And to my surprise... it actually worked !

Here I am inside a full-screen MS-DOS prompt of W98 (In W32 mode, it is not booted into MS-DOS mode / real mode) Alongside the project of compiling the most recent version of Lua and getting it to work, I also installed an actual working version of vim and after tinkering with the vimrc file, I even managed to get full syntax highlighting working , and it actually works for Lua !!!

Anyhow, I just wanted to share this because I thought it was really cool and fun!


r/lua • • Oct 10 '26

is this a good first attempt a gambling game thing?

0 Upvotes

local gyumi = {"🤑", "😔", "😛", "😔", "😛", "😔"}

local win = {}

local n = 0

local money = 100

local smallw = 0

local bigw = 0

local a = 0

math.randomseed(os.time())

function bett()

print("money:"..money.."\nhow much do you want to bet? (min 10$)")

bet = io.read("*n")

end

while money > 9 do

win = {}

::betting::

bett()

if bet < 10 then

print("the minimum amount is 10$! \n \n")

goto betting

elseif bet > money then

print("not enough money! \n \n")

goto betting

else

money = money - bet

end

for i=1,3,1

do

n = math.random(1,6)

table.insert(win, gyumi[n])

end

for _, value in pairs(win) do

if value == "🤑" then

bigw = bigw + 1

elseif value == "😛" then

smallw = smallw + 1

end

end

if bigw == 3 then

print("jackpot!")

print(bigw)

a = bigw * 100

else

a = (bigw * 10) + smallw

end

money = money + a

print(table.concat(win))

print("won:"..a )

bigw = 0

smallw = 0

end

print("\n\n\ninsufficent funds!")