Category "lua"

Start roblox script with RemoteEvent

How i can do something like that and fix this (i learn script) local Event = game.ReplicatedStorage.SoundPlayEventWirlord Event.OnServerEvent:Connect(function(

How to make other scripts change leaderstats?

im playing roblox and i wanna make a script so when you sell your capacity your money goes up by that amount. ill provide all scripts below. local MaxCapacity =

How to make other scripts change leaderstats?

im playing roblox and i wanna make a script so when you sell your capacity your money goes up by that amount. ill provide all scripts below. local MaxCapacity =

lua get file extension first occurrence

So i have a url like so https://example.com/path/to/file/file.mp4/file.jpg I want to match only the first provided file extension provided not any others peo

Error while trying to open 'Love2d' game engine

I'm trying to open a game with Love2D and the following error occurs: Error boot.lua:577: Cannot load game at path '/home/panali/Desktop/Lua.love/ma

How do I chance the size of hotkeys_popup.show_help

My short key help is not tall enough to show all my shortcuts. Mod4 + s is the default binding to see the short cuts, when I use it I can see that the list is c

My timer script for minecraft is not working... lua

I have a problem with my minecraft timer script I tried to add a function that saves the time values from worlds in a document. The timer worked completly fine

How to filter a Lua array inplace?

How to filter a Lua array inplace? For example, having an array of { 1, 5, 7 } and a function function(elem) return elem > 1 end, the inplace filtering func

VLC-LUA: using net.stat

I am trying to write a function that finds the first .waste dir in one of the parent dirs (e.g. .. ../.. ../../..). For this I need to see if the dir exists. F

Lua - Can I pick the specific result(s) I want from a function that returns multiple results

Is there a way to choose the result(s) I want from a function that returns multiple results . E.g. local function FormatSeconds(secondsArg) local weeks = m

Attempt to index global 'object' (a nil value)

So this is the error I have been getting: Game.lua:66: attempt to index global 'Spears' (a nil value) stack traceback: Game.lua:66: in

ROBLOX Kill command to kill specified player

I want to make a command that would kill a player you specify.. Let's say I type: kill/Paul. Now I want to kill the player with the name Paul. This is my comman

Read file from project root directory in Lua (for Quarto/Pandoc)

I have a book that I am moving from the Bookdown toolchain to Quarto. Very simply, both tools generate a book from flavoured markdown using Pandoc. Pandoc allow

Lua set default error handler

The default lua_pcall error handler (as of Lua 5.3) does nothing, letting the exception message remain on top of the stack. We would like to change this so we g

convert string to hex in lua?

I am going to send a byte array through socket.But I used to work in c/c++ and be new to lua. Now i have a problem,here is my question. i want to send a bytear

Converting a lua table to a java `Map` with Spring Data Redis

I am trying to run a lua script which eventually returns a lua table, then convert it as java Map with Spring Data Redis. When the result is array style lua tab

Redis INCRBY with limits

I'd like to know if there is a way to perform this in redis with a single roundtrip from my app: For a given key K, its possible value V is any of the integers

Writen .lua to normal .lua [closed]

This is in FiveM and I dont know how to write this to 'normal' lua. This is the code: if LumiaM.Mfunc.Button('Give

Can't install http module with luarocks on Ubuntu

HTTP module installation is failing on Ubuntu with following error: root@someserver:/var/log# luarocks install http Warning: falling back to wget - install luas

How to fuse array in Lua

how can I fuse two array into one to be like: local array1 = {2272, 2271, 2270, 2269} local array2 = {2267, 2266, 2268, 2265, 2264, 2263, 2262, 2261} local fus