Category "lua"

How to configure alpha.nvim?

I have an init.lua file that contains: require "user.setup.alpha" as in: require "user.options" require "user.keymaps" require "user.autocmds"

How do I match a string with "-" in it with LUA?

I am trying to match text in between two strings. So far, this works well on 'find1', but 'find2' produces an error. Example1: find1 = cmd:match("<model>(

My if statement isn't working even when condition is met. Roblox Lua

So here is the rundown of my code: while _waveActive do wait(1) for i, _spwn in pairs(_spawns:GetChildren()) do if _spwn:IsA("BasePart") and _zo

Decompile apk game built in corona sdk

A long time ago, I and a friend did a mini-game with corona sdk. We lost the source code and this week I finded the apk lost here. I tried extract the .apk with

My cash value is suppose to go up every minute but its not. (Roblox Studio lua error)

I was trying to re-edit the code over and over again but it still didn't work I've created the folder leader stats and when I play the game it shows that it's a

Humanoid:MoveTo() doesn't work | Roblox LUA

So i'm trying to make a little bot that moves to a point in the map Here is my code : local character = script.Parent local humanoid = character.Humanoid local

How to make a player fly to a point in lua roblox?

I want my player to fly at a certain speed to the specified point after running the code, it should not be teleportation, but exactly smooth movement, as in thi

how do I make a buttonGUI that when clicked shows a GUI?

I would like this to be a buttonGUI or a proximity prompt (proximity prompt preferred)

How to send messages to Webhook from Lua using io.read

I'm need it for Webhook so i not tired to type from editing local message = [[ {"username":"example","avatar_url": "example.com","content": (where io.read will

problem with event parameters / arguments. (Roblox Studio)

Basically I have a code that gets fired to a localscript in all players. The speaker / player argument is used to make sure the event is recieved by the correct

Is there a way to make a variable of every part in a group (Roblox.Lua)?

So I recently made a Roblox script (in lua) that powers when a button is pressed, it will change the colors of the object I want to change (a light) and it pops

ESP8266 running NodeMCU - Detect Pulse Stream Start/Stop

I've built an automatic, self-filling water bowl for my dogs that's working perfectly with a water level controller and I'd like to now add some monitoring cap

infinite yield possible on 'Players.shaz:WaitForChild("Values")' im trying to make it so when the player claims the booth it turns bool value to true

local claim = script.Parent.Parent.Parent.Parent.StandMesh.Claim This will trigger the Proximty Prompt. claim.Triggered:Connect(function(player) local screen

Stopwatch in Roblox Lua using a while loop

I am making a Roblox game and I want it to have a stopwatch. The stopwatch works, but it counts very slowly for some reason. Here's my ScreenGui in StarterGui:

Generate variable name with string and value in Lua

Is there a function in Lua to generate a variable name with a string and a value? For example, I have the first (string) part "vari" and the second (value) part

(Lua 5.1) '=' expected near 'outer' | trying to execute a Lua script [closed]

I am trying to get this code to work, but I don't understand why. It says that it wants an "=" to make 'goto' a variable, but it should be run

Why does "array[index]" return "nil"?

this problem seems very simple but I cannot find a solution for it, actually I don't even know what is wrong!!! So basically I have this Lua code: io.write("\nP

Players.endersam777.PlayerGui.Currency.Money.LocalScript:5: attempt to call a number value

So, I was making something like the currency on leaderboard will be on a TextLabel. How can I make something like it will not be showing 0 but 0$? Because if I

replace number after word

I have a big file with the word engineHealth":1000.0 I want to change the number after engineHealth":

"memory allocation error: block too big" doing simple integer division

I have a weird issue. LUA 5.3.5, compiled on STM32F429. Free RAM is about 1Mb (memory allocation is using external SDRAM, not the more limited internal RAM on