Lua - Reddit – Telegram
Lua - Reddit
30 subscribers
278 photos
31 videos
4.23K links
News and discussion for the Lua programming language.

Subreddit: https://www.reddit.com/r/lua

Powered by : @r_channels & @reddit2telegram
Download Telegram
Hello

So I am planning to make roblox war game, similar to the D Day game but better, with more maps and etc. I already have game plsn and some things, but I need a coder because I have no experience with lua. I am also looking for person that knows how to make maps, UI and gameplay. No need for market manager, I have a lot of experience with that. I can also promiss that two people fair amount of robux from earnings from the game, since it will be splited in equal parts (if 4 of us, 25% each) it can be modified if somebody will want more cause i really dont care about earnings.

https://redd.it/1mi62v1
@r_lua
What am i missing?

Sorry if this is a dumb question im trying to setup neovim for python and one part requires to setup the plugins configuration.

mine

this is the code, but shouldn't opts and ensure_installed be highlighted on red?? im using the same theme as the guy on the video and his is highlighted with red

tutorial



https://redd.it/1mijvpj
@r_lua
Check first bit in string

I have a 4 character string that consists of a single bit boolean value, followed by an unsigned 31 bit value.

I need to check what the boolean value is, what's the best way to do this?


At first I figured I could simply interpret it as a signed 32 bit value and then check if it is positive or negative, something like this:

local s32 = string.unpack("<i4", string)
if s32 < 0 then
return true
else
return false
end

But then I realised, if the 31 bit integer is zero, then wouldn't the resulting 32 bit integer be -0? And since -0 is equal to 0 then s32 < 0 would have to evaluate to false, right?

https://redd.it/1mixp1p
@r_lua
Is it possible to deobfuscate Luraph-obfuscated Roblox noscripts?

Hi everyone,

I have some Roblox Lua noscripts that were obfuscated using Luraph, and I’m trying to understand if there’s a reliable way or any tools to deobfuscate or decode them back to a more readable form.

Has anyone worked with Luraph obfuscation before or knows methods to reverse or decode these noscripts? Any guidance, tools, or resources would be greatly appreciated!

Thanks in advance!

https://redd.it/1mjdfuq
@r_lua
First mini program in Lua

I don't know if I should be posting this on here, but I followed a tutorial to make a basic calculator program using Lua. It's really basic, but my end goal is to make a basic game in Lua using Love2D, and I just wanted to start with something basic. The code is here:



function adding(x, y) return x + y end function subtraction(x, y) return x - y end function calculate(x, y, f) return f(x, y) end print("enter a number") local x = io.read("*n" , "*l") print("enter another number") local y = io.read("*n", "*l") print("Do you need to add or subtract? (Type + or -) ") local op = io.read(1, "*l") if op == "-" then operation = subtraction else operation = adding end print(calculate(x, y, operation))

https://redd.it/1mkdpvy
@r_lua
Help with uniforms

So I am making a war game and I need help with uniforms. One is model and another is folder. Photo is in the link.

https://preview.redd.it/sjsf5dyb9rhf1.png?width=1920&format=png&auto=webp&s=45876bdec80e5c7b5dbf4f669a851fca5316cbb6



https://redd.it/1mkplpg
@r_lua