Category "lua"

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

'end' expected near '<eof>' for map import for lua file

Error Syntax error: main.lua:8: 'end' expected (to close 'function' at line 5) near '<eof>' Traceback [love "callbacks.lua"]:228: in function 'handler' [

Garry's Mod: How to send a DLL?

Garry's Mod provides a C++ API to create server-side and client-side DLLs. As it is said in the article "Creating Binary Modules", they must be placed in the "g

i can't run a lua game in love2D

When I try to run the game, I receive this error: Error [love "boot.lua"]:323: Cannot load game at path 'C:/Users/LENOVO/Desktop/LUA-Projects- master/projects

How do i copy an array from a lua file

I Want to copy an array from a text file and make another array equal it so local mapData = { grass = { cam = "hud", x = 171, image

LUA - How can you generate an array of numbered variables?

I'm sorry if my question is stupid, I'm not a programmer, but I'd really like to write a tool to help me generate color gradients. Until now I've had this huge

On Roblox I'm trying to make it so that when you use a proximity prompt a image label becomes visible and stays visible even when you rejoin

local proximity = workspace.Cardpack.ProximityPrompt --GUI.Enabled = true local proximityPromptService = game.GetService("ProximityPromptService") proximity.Tr

NodeMCU net server listen gives error out of memory in lua (esplorer)

I have one error here that I don't know how to solve and didn't find a working solution on the Internet. I have a NodeMCU 12 E. and I want to transfer data from

When are functions assigned to a variable actually computed?

I'm doing some troubleshooting on a Lua function I wrote yesterday as part of a game development effort using the Love2D API. The function is designed to handl

How to change the HTML rendering of a Pandoc element?

I'm trying to customize the default HTML output of footnotes from an .odt file. For example a file with a footnote like this: Some text with a footnote1 Will

Why does the powerup not draw to the screen?

I've been making a breakout game recently and I've come upon a problem. So, I made a powerup function to randomly draw powerups to the screen. However when I ru

Love2d countdown and stopwatch

As the title suggests I want to create a love2d countdown as well as a stop watch. I previously tried doing this as follows: Countdown: function love.load()