Is Lua the right step to learn how to code a roblox game?
So, I want to learn how to code so I can make my own story game on roblox. Yet, I am not sure if I am going in the right step or not. Since I heard that Roblox game used Lua or a variation of it.
If it is, what resources should I use to learn lua more, since I am finding coddy tech frustating to use and learn from. Since I would type it thinking I got it correct but then I am stuck and the ai help doesn't work for me. (A human imput would be better since I normally find when a human who has experince can normally find out what I did wrong)
If this isn't the correct step then what should I do instead?
https://redd.it/1q15r42
@r_lua
So, I want to learn how to code so I can make my own story game on roblox. Yet, I am not sure if I am going in the right step or not. Since I heard that Roblox game used Lua or a variation of it.
If it is, what resources should I use to learn lua more, since I am finding coddy tech frustating to use and learn from. Since I would type it thinking I got it correct but then I am stuck and the ai help doesn't work for me. (A human imput would be better since I normally find when a human who has experince can normally find out what I did wrong)
If this isn't the correct step then what should I do instead?
https://redd.it/1q15r42
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
What are some of your problems with lua?
Love2d and other libraries are welcome but just say what library your talking about
https://redd.it/1q1euey
@r_lua
Love2d and other libraries are welcome but just say what library your talking about
https://redd.it/1q1euey
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Not sure if this is allowed but I'm looking for people to help with my project
https://redd.it/1q27234
@r_lua
https://redd.it/1q27234
@r_lua
Is there a CLI of lua-language-server's type checking?
I have a Lua project (Neovim plugin).
I'd like to use Neovim's type definitions files, which are provided as LuaLS's
I'd like to include type checking in my CI to prevents, but it looks like LuaLS does not work as standalone type checker.
Therefore I looked for typed lua things but none of them sounds great. (teal and stella are not lua, selene does not support LuaLS style type annotations)
Is there a project that does this? Or is there a workaround?
https://redd.it/1q2werf
@r_lua
I have a Lua project (Neovim plugin).
I'd like to use Neovim's type definitions files, which are provided as LuaLS's
@meta things.I'd like to include type checking in my CI to prevents, but it looks like LuaLS does not work as standalone type checker.
Therefore I looked for typed lua things but none of them sounds great. (teal and stella are not lua, selene does not support LuaLS style type annotations)
Is there a project that does this? Or is there a workaround?
https://redd.it/1q2werf
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
What are some of your problems with lua?
Love2d and other libraries are welcome but just say what library your talking about
https://redd.it/1q1euey
@r_lua
Love2d and other libraries are welcome but just say what library your talking about
https://redd.it/1q1euey
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Is Lua the right step to learn how to code a roblox game?
So, I want to learn how to code so I can make my own story game on roblox. Yet, I am not sure if I am going in the right step or not. Since I heard that Roblox game used Lua or a variation of it.
If it is, what resources should I use to learn lua more, since I am finding coddy tech frustating to use and learn from. Since I would type it thinking I got it correct but then I am stuck and the ai help doesn't work for me. (A human imput would be better since I normally find when a human who has experince can normally find out what I did wrong)
If this isn't the correct step then what should I do instead?
https://redd.it/1q15r42
@r_lua
So, I want to learn how to code so I can make my own story game on roblox. Yet, I am not sure if I am going in the right step or not. Since I heard that Roblox game used Lua or a variation of it.
If it is, what resources should I use to learn lua more, since I am finding coddy tech frustating to use and learn from. Since I would type it thinking I got it correct but then I am stuck and the ai help doesn't work for me. (A human imput would be better since I normally find when a human who has experince can normally find out what I did wrong)
If this isn't the correct step then what should I do instead?
https://redd.it/1q15r42
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
I built a Lua/Luau obfuscator with control-flow flattening and anti-tamper - looking for feedback
I’ve been working on a Lua/Luau obfuscator as a side project.
It’s not just a renamer - it includes:
string encryption
control-flow flattening
integrity-bound API indirection
environment hardening (anti-hooking)
Here’s a small before/after example:
*https://pastebin.com/raw/GNFGha8e*
I’m mainly looking for feedback or ideas on what could be improved.
If anyone’s curious, I have a Discord where I post builds and updates.
https://redd.it/1q0gbj8
@r_lua
I’ve been working on a Lua/Luau obfuscator as a side project.
It’s not just a renamer - it includes:
string encryption
control-flow flattening
integrity-bound API indirection
environment hardening (anti-hooking)
Here’s a small before/after example:
*https://pastebin.com/raw/GNFGha8e*
I’m mainly looking for feedback or ideas on what could be improved.
If anyone’s curious, I have a Discord where I post builds and updates.
https://redd.it/1q0gbj8
@r_lua
Can I learn lua with dyslexia
I seen bits of lua and it looks fun but I have dyslexia and have a hard time with long words so I was wondering if lua may not be the best thing for me to try to make a hobby and if so where is the best place to try to learn lua with like hand on. Because I dont want to watch a video that is just going to tell me how to do anything. I learn better well doing it myself as well. And one other thing how long does it take the average person to learn lua?
https://redd.it/1q02ksm
@r_lua
I seen bits of lua and it looks fun but I have dyslexia and have a hard time with long words so I was wondering if lua may not be the best thing for me to try to make a hobby and if so where is the best place to try to learn lua with like hand on. Because I dont want to watch a video that is just going to tell me how to do anything. I learn better well doing it myself as well. And one other thing how long does it take the average person to learn lua?
https://redd.it/1q02ksm
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
City
Estou construindo uma cidade para FiveM e estou procurando um desenvolvedor de jogos interessado em ajudar a construir este projeto.
Não posso pagar no momento, mas ofereço participação no projeto, crédito/nome no servidor e total liberdade criativa.
Ideal para um desenvolvedor que quer construir um portfólio e crescer junto.
Requisitos:
Conhecimento pelo menos intermediário de Lua
Sou do Brasil (falo português, mas inglês está tranquilo) Estou construindo uma cidade para FiveM e estou procurando um desenvolvedor de jogos interessado em ajudar a construir este projeto.
Não posso pagar no momento, mas ofereço participação no projeto, crédito/nome no servidor e total liberdade criativa.
Ideal para um desenvolvedor que quer construir um portfólio e crescer junto.
Requisitos:
Conhecimento pelo menos intermediário de Lua
Sou do Brasil
https://redd.it/1q39aft
@r_lua
Estou construindo uma cidade para FiveM e estou procurando um desenvolvedor de jogos interessado em ajudar a construir este projeto.
Não posso pagar no momento, mas ofereço participação no projeto, crédito/nome no servidor e total liberdade criativa.
Ideal para um desenvolvedor que quer construir um portfólio e crescer junto.
Requisitos:
Conhecimento pelo menos intermediário de Lua
Sou do Brasil (falo português, mas inglês está tranquilo) Estou construindo uma cidade para FiveM e estou procurando um desenvolvedor de jogos interessado em ajudar a construir este projeto.
Não posso pagar no momento, mas ofereço participação no projeto, crédito/nome no servidor e total liberdade criativa.
Ideal para um desenvolvedor que quer construir um portfólio e crescer junto.
Requisitos:
Conhecimento pelo menos intermediário de Lua
Sou do Brasil
https://redd.it/1q39aft
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Vectarine: A game framework for ultra fast prototyping
I really like Love2D for making games, but it is annoying to export on the web. I like participating in game jams on itch.io and having a web version for people to test is a must. Moreover, I need to restart my game when I make a change to see it which slows me down where coding. That's why I made https://github.com/vanyle/vectarine/ It is a hybrid between a framework and a game engine.
You write your game in Lua (or Luau) and as you save, you see changes instantly. Also, I've automated the export process to make is super simple + added a bunch of other helpful tools to simplify debugging
The engine's interface looks like this:
https://preview.redd.it/tbochxvdcf9g1.png?width=1824&format=png&auto=webp&s=8f3178b29eadae72982997de4ef4a8d3ed4111e5
I'm open to feedback! There is a lot missing right now like Joystick support but I want to improve it over time.
https://redd.it/1pvo97d
@r_lua
I really like Love2D for making games, but it is annoying to export on the web. I like participating in game jams on itch.io and having a web version for people to test is a must. Moreover, I need to restart my game when I make a change to see it which slows me down where coding. That's why I made https://github.com/vanyle/vectarine/ It is a hybrid between a framework and a game engine.
You write your game in Lua (or Luau) and as you save, you see changes instantly. Also, I've automated the export process to make is super simple + added a bunch of other helpful tools to simplify debugging
The engine's interface looks like this:
https://preview.redd.it/tbochxvdcf9g1.png?width=1824&format=png&auto=webp&s=8f3178b29eadae72982997de4ef4a8d3ed4111e5
I'm open to feedback! There is a lot missing right now like Joystick support but I want to improve it over time.
https://redd.it/1pvo97d
@r_lua
itch.io
itch.io is a simple way to find, download and distribute indie games online. Whether you're a developer looking to upload your game or just someone looking for something new to play itch.io has you covered.
A pure Lua 5.1 implementation of xpcall with support for passing arguments
https://github.com/BlackMATov/xpcall.lua
https://redd.it/1q3g5tc
@r_lua
https://github.com/BlackMATov/xpcall.lua
https://redd.it/1q3g5tc
@r_lua
GitHub
GitHub - BlackMATov/xpcall.lua: A pure Lua implementation of xpcall with support for passing arguments
A pure Lua implementation of xpcall with support for passing arguments - BlackMATov/xpcall.lua
[GLUA] Bizarre Bug Involved Respawns With a Specific Team
I will preface this with the fact that I know r/lua is not exactly the most relevant subreddit for glua-related issues, however since the r/glua moderators appear to have gone missing for 4 years and the post I made to r/gmod has garnered no response, I decided to post here.
I'm creating a hide-and-seek type gamemode. Whenever the round starts, I have all players respawn, blind and lock the seeker, and spawn an ammo resupply in front of them. This all worked as intended previously, but after a series of additions to make spectating work and preventing players from respawning during the round, the seeker's respawn is bugged, and they'll be respawned in the same position (but not same angle) they were at prior to respawning. The ammo crate, however, spawns in the correct spawn (at an info\_player\_start), and for one tick the seeker appears to spawn in the correct spot. Due to this being a hide-and-seek gamemode, this is obviously an issue.
For where this bug occurs, the players are respawned in a function that handles all logic for when the round should start, which is called from a think hook keeping track of the timer and when the round should begin and end. Prior to respawning, the seeker is selected, players are assigned teams, and a message is sent to the client to open the weapon select menu.
Both the `beginRound` and `selectTeams` functions are shown before, I believe it should be self-explanatory enough.
-- begins the hiding phase of the round
local function beginRound()
round_status = 1
roundStartTime = lobbyEndTime + HideTime
updateClientStatus()
print("Round Status: "..round_status)
local plyrs = player.GetAll()
local alive = 0
-- old code from when I first worked on this, perhaps can be used to adjust time based on number of players
for _,v in pairs(plyrs) do
if v:Alive() then
alive = alive + 1
end
end
-- set up Players
selectTeams(plyrs)
giveWeapons()
for _,ply in pairs(plyrs) do
-- bug occurs with this call to spawn the players
ply:Spawn()
print(ply:GetPos())
if ply == seeker then
ply:Lock()
net.Start("BlindKiller")
net.Send(ply)
end
end
-- creates the resupply crate
createResupply()
timer.Simple(0.1, function()
print(seeker:GetPos())
end)
end
local function selectTeams(plyrs)
local seekerNum = math.random(1, #plyrs)
-- tried respawning the seeker both prior and after the seeker variable is assigned - both failed
seeker = plyrs[seekerNum]
seeker:SetTeam(0)
seeker.Seeker = true
for _,ply in pairs(plyrs) do
if (ply ~= seeker) then
ply:SetTeam(1)
ply.Seeker = false
end
end
end
What's odd is that this bug does not happen for the hider and lobby teams, and furthermore when the seeker respawns after the round starts, they respawn normally. Attempting to respawn the seeker after they're selected but before they're assigned to the seeker team doesn't work. This bug also appeared before when I overrode the PlayerSpawn hook to add sandbox movement. Calling both `player_manager.SetPlayerClass` and `BaseClass.PlayerSpawn` would cause the same respawning issue. Removing my own implementation of the algorithm does not fix it this time. The hook that caused the issue previously is as follows:
function GM:PlayerSpawn(ply, transition)
player_manager.SetPlayerClass(ply, "player_sandbox_modified")
BaseClass.PlayerSpawn(self, ply, transition)
end
I also can not find any resources online talking about this issue as I have it. Nothing about "respawning where player was before respawning", or "player spawning in wrong position". I couldn't find any posts on forums,
I will preface this with the fact that I know r/lua is not exactly the most relevant subreddit for glua-related issues, however since the r/glua moderators appear to have gone missing for 4 years and the post I made to r/gmod has garnered no response, I decided to post here.
I'm creating a hide-and-seek type gamemode. Whenever the round starts, I have all players respawn, blind and lock the seeker, and spawn an ammo resupply in front of them. This all worked as intended previously, but after a series of additions to make spectating work and preventing players from respawning during the round, the seeker's respawn is bugged, and they'll be respawned in the same position (but not same angle) they were at prior to respawning. The ammo crate, however, spawns in the correct spawn (at an info\_player\_start), and for one tick the seeker appears to spawn in the correct spot. Due to this being a hide-and-seek gamemode, this is obviously an issue.
For where this bug occurs, the players are respawned in a function that handles all logic for when the round should start, which is called from a think hook keeping track of the timer and when the round should begin and end. Prior to respawning, the seeker is selected, players are assigned teams, and a message is sent to the client to open the weapon select menu.
Both the `beginRound` and `selectTeams` functions are shown before, I believe it should be self-explanatory enough.
-- begins the hiding phase of the round
local function beginRound()
round_status = 1
roundStartTime = lobbyEndTime + HideTime
updateClientStatus()
print("Round Status: "..round_status)
local plyrs = player.GetAll()
local alive = 0
-- old code from when I first worked on this, perhaps can be used to adjust time based on number of players
for _,v in pairs(plyrs) do
if v:Alive() then
alive = alive + 1
end
end
-- set up Players
selectTeams(plyrs)
giveWeapons()
for _,ply in pairs(plyrs) do
-- bug occurs with this call to spawn the players
ply:Spawn()
print(ply:GetPos())
if ply == seeker then
ply:Lock()
net.Start("BlindKiller")
net.Send(ply)
end
end
-- creates the resupply crate
createResupply()
timer.Simple(0.1, function()
print(seeker:GetPos())
end)
end
local function selectTeams(plyrs)
local seekerNum = math.random(1, #plyrs)
-- tried respawning the seeker both prior and after the seeker variable is assigned - both failed
seeker = plyrs[seekerNum]
seeker:SetTeam(0)
seeker.Seeker = true
for _,ply in pairs(plyrs) do
if (ply ~= seeker) then
ply:SetTeam(1)
ply.Seeker = false
end
end
end
What's odd is that this bug does not happen for the hider and lobby teams, and furthermore when the seeker respawns after the round starts, they respawn normally. Attempting to respawn the seeker after they're selected but before they're assigned to the seeker team doesn't work. This bug also appeared before when I overrode the PlayerSpawn hook to add sandbox movement. Calling both `player_manager.SetPlayerClass` and `BaseClass.PlayerSpawn` would cause the same respawning issue. Removing my own implementation of the algorithm does not fix it this time. The hook that caused the issue previously is as follows:
function GM:PlayerSpawn(ply, transition)
player_manager.SetPlayerClass(ply, "player_sandbox_modified")
BaseClass.PlayerSpawn(self, ply, transition)
end
I also can not find any resources online talking about this issue as I have it. Nothing about "respawning where player was before respawning", or "player spawning in wrong position". I couldn't find any posts on forums,
Reddit, Steam, what have you, about this issue. Nothing with videos either, they're already scarce as they are and nothing dealt with player respawns. These posts are my last resort to try and fix this.
https://reddit.com/link/1q3gn37/video/i1buqkrfd9bg1/player
Here is a video showing the bug in action. I removed the blind effect on the seeker to make it more obvious what's happening. When the player spawns after the round starts, I had it print out the player's position. Then, after a 0.1 second timer, I print out the player's position again to show how it's different, suggesting the player spawns correctly for one tick before being moved.
I hope this is enough information to discern the cause of the bug. Any help is appreciated!
https://redd.it/1q3gn37
@r_lua
https://reddit.com/link/1q3gn37/video/i1buqkrfd9bg1/player
Here is a video showing the bug in action. I removed the blind effect on the seeker to make it more obvious what's happening. When the player spawns after the round starts, I had it print out the player's position. Then, after a 0.1 second timer, I print out the player's position again to show how it's different, suggesting the player spawns correctly for one tick before being moved.
I hope this is enough information to discern the cause of the bug. Any help is appreciated!
https://redd.it/1q3gn37
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
I need GUI Lib
Hello dear Lua community! I am searching for 3 days to find a GUI Lua library but i can't finded any. ChatGPT, Claude and other AI's can't find any. I found a GTK wrapper for lua called lgi but i can't find a guide to code on it. Please help me.
- Plz find a free-licensed lib.
> Löve is not for me. I need a generic library, not a game developing framework.
Thank you.
https://redd.it/1q3itu6
@r_lua
Hello dear Lua community! I am searching for 3 days to find a GUI Lua library but i can't finded any. ChatGPT, Claude and other AI's can't find any. I found a GTK wrapper for lua called lgi but i can't find a guide to code on it. Please help me.
- Plz find a free-licensed lib.
> Löve is not for me. I need a generic library, not a game developing framework.
Thank you.
https://redd.it/1q3itu6
@r_lua
GitHub
GitHub - lgi-devs/lgi: Dynamic Lua binding to GObject libraries using GObject-Introspection
Dynamic Lua binding to GObject libraries using GObject-Introspection - lgi-devs/lgi
sqlite-vec (Vector Search in SQLite) version 0.2.4-alpha released
I've just released version 0.2.4-alpha of my community fork of sqlite-vec. It now features a binding for the Lua programming language.
Full details from CHANGELOG.md:
## 0.2.4-alpha - 2026-01-03
### Added
- Lua binding with IEEE 754 compliant float serialization (#237)
-
- Lua 5.1+ compatible with lsqlite3
- IEEE 754 single-precision float encoding with round-half-to-even (banker's rounding)
- Proper handling of special values: NaN, Inf, -Inf, -0.0, subnormals
- Example noscript and runner in
https://redd.it/1q3kwik
@r_lua
I've just released version 0.2.4-alpha of my community fork of sqlite-vec. It now features a binding for the Lua programming language.
Full details from CHANGELOG.md:
## 0.2.4-alpha - 2026-01-03
### Added
- Lua binding with IEEE 754 compliant float serialization (#237)
-
bindings/lua/sqlite_vec.lua provides load(), serialize_f32(), and serialize_json() functions- Lua 5.1+ compatible with lsqlite3
- IEEE 754 single-precision float encoding with round-half-to-even (banker's rounding)
- Proper handling of special values: NaN, Inf, -Inf, -0.0, subnormals
- Example noscript and runner in
/examples/simple-lua/https://redd.it/1q3kwik
@r_lua
GitHub
GitHub - vlasky/sqlite-vec: A vector search SQLite extension that runs anywhere! Community fork adding distance constraints, pagination…
A vector search SQLite extension that runs anywhere! Community fork adding distance constraints, pagination and optimize command to reclaim unused space. - vlasky/sqlite-vec
Made this cool stylized Lua & Luau logo, thoughts?
Lua
https://preview.redd.it/awlvzyx1bdbg1.png?width=1024&format=png&auto=webp&s=4e228961310104cb1ac06f4728aa33112c1dee4d
Luau
https://preview.redd.it/oim42rdkbdbg1.png?width=1024&format=png&auto=webp&s=6c06ac5eaa92a10070f13f348b8e848045a1f16e
https://redd.it/1q3vyab
@r_lua
Lua
https://preview.redd.it/awlvzyx1bdbg1.png?width=1024&format=png&auto=webp&s=4e228961310104cb1ac06f4728aa33112c1dee4d
Luau
https://preview.redd.it/oim42rdkbdbg1.png?width=1024&format=png&auto=webp&s=6c06ac5eaa92a10070f13f348b8e848045a1f16e
https://redd.it/1q3vyab
@r_lua