Category "lua"

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,

roblox LUA Expected 'end' (to close 'than' at line 3), got '='

function teleportTo(placeCFrame) local plyr = game.Players.LocalPlayer; if plyr.Character then return plyr.Character.HumanoidRootPart.CFrame = p

what version of Lua does raylib use

When I try to use raylib with lua + zerobrane it says it can't require it , here is the output from zerobrane. would not let me copy output but I think you get

Converting a steam hex into steam community id

I am using lua FiveM to get steam hex of a player but i want to convert that hex to a community id like 76561198364192600. How do i got about that? is there an

Split an object based on other intersecting objects

I'm trying to create a wall placement system a kin to Sims, and am having trouble figuring out how to split the wall if you put another wall perpendicular to it