Category "lua"

Is there any way to find a string from a table?

I don't know if there's any way to find a string from a table in Lua that matches the argument for example. function Library.Instance(object,name) local Expl

Luasockets get the lua files

can I get the the .lua files that comes with luasockets somewhere? Like ftp.lua , http.lua etc... I have no idea how to build something I trying a lot with VStu

Fibaro requesting prices Lua 5.1

Luarocks wont work on fibaro, so im removing this

How do i change the void limit on roblox for players die ? (roblox studio)

How i can change the void limit of Roblox for anyone or part is under 2000 and not 500 by default dont die ? I want to make a adminbase base at Y = -1466.704 an

How to fix: attempt to index nil with 'entered'

So basically, the script is supposed to load text after the intro screen disappears, not sure what's wrong with it because it worked back in 2014 :/ The Code: i

Could not find header file for OPENSSL

I am trying to install Luasec on Ubuntu terminal, but it just keeps displaying this error to me: Error: Could not find header file for OPENSSL No file openss

Sourcing nvim.init does not source required Lua files

I have neovim 0.7.0 running and my .vimrc is at ~/.config/nvim/init.vim I also have the following file: ~/.config/nvim/lua/statusline.lua with one line of code:

FocusLost being called twice

Whenever I use FocusLost on a TextBox, its called twice for some reason Code: script.Parent:WaitForChild("CommandBar").Command.FocusLost:Connect(function(enterP

FocusLost being called twice

Whenever I use FocusLost on a TextBox, its called twice for some reason Code: script.Parent:WaitForChild("CommandBar").Command.FocusLost:Connect(function(enterP

How can I make scrolling text?

I am currently trying to make scrolling text. I’m using Lua 5.2. The basic idea is: I have a variable with a long string of text in it I want to make a fu

conky using a function call within an if statement

How do I call a function after loading it in conkyrc? For example: I'm trying to get the active interface name which is returning properly ${lua conky_findInte

FNF Psych Engine Slow Down (Friday Night Funkin') lime test windows

(Sorry if there is typo I type this in a hurry) EDIT: The problem is gone for me but I have no idea why. I rebooted my pc many times and fail for days but some

Add body to luasocket POST request with generic form?

From https://w3.impa.br/~diego/software/luasocket/http.html, there are two ways to make a request, simple and generic. I have gotten the body to work with the s

percentage calculation with negative integers LUA [ANWSERED]

problem: -4% = 0 0% = 5000 How do I make it so that i can calculate both the negative and positive values? What i've tried: local nrstate = "-" local x = therm

C++ Lua access violation when table size is above treshold

Recently I became Lua expert in my team due to an issue occurring when we want to send a large table to the following function: int native_sl_shootlaserpulse(

Mutex in WRK lua script

I have the following script in Lua (custom.lua): local data = loadFile() local count = -1 request = function() url_path = "/resource" -- lock count

main:lua attempt to call box2d_init a nil value, why?

EDIT: obviously I didnt install the library correctly? (my version of love is 11.4). perhaps i should rename the question to how do i properly install this libr

bad argument #1 to 'insert' (table expected, got nil)

I have a problem with lockpick on my gmod dark rp server, can you help me please? error: [plogs] addons/plogs/lua/plogs/core_sv.lua:87: bad argument #1 to 'inse

How to truncate text but backwards?

I want to achieve something like this: I give function a string that should be trunctated and a maximum number of characters. local function TruncateBackwards(

Roblox Item is lagging

I add a mesh to follow the player where ever he goes. But the mesh is lagging a bit when the player runs. I understand that it is not rendering quickly enough,