Why won’t lua 5.4 load a module from the current directory by default?
I see multiple questions here, that imply loading modules from the current directory should be the default behavior of Lua. See “selected answers” for these two questions:
I am making a Lua Love 2d game and I wanted to use the love.keypressed function to make a dash a move. But there is an eror
I am making a Lua Love 2d game and I wanted to use the love.keypressed function to make a dash a move. But there is an eror.
I want my function to detect only once so I can make my dash.enter image description here
Lua table.insert refuses to work unless the expression given as second arg is saved to a var first
Observe the behavior from the repl:
Is there a way to make a timer that works even when the player is offline in Lua?
I’m trying to make a funny joke thingy where you’re asked “are you sure you want to play?” And if you press “no” you can’t play the game for 1 day
GnomeCode’s tower defence game
im on the final epsiode of gnomecodes tower defense and doing datastore but i get an issue ServerScriptService.ShopServer:101: attempt to index number with ‘Chips’ – Server – ShopServer:101
19:00:07.535 Stack Begin – Studio
19:00:07.536 Script ‘ServerScriptService.ShopServer’, Line 101 – Studio – ShopServer:101
19:00:07.536 Stack End – Studio
19:00:07.570 ServerScriptService.ShopServer:101: attempt to index number with ‘Chips’ – Client – ShopClient:26
19:00:07.570 Stack Begin – Studio
19:00:07.570 Script ‘Players.YoshiBlam.PlayerGui.ShopGui.ShopClient’, Line 26 – function interactItem – Studio – ShopClient:26
19:00:07.571 Script ‘Players.YoshiBlam.PlayerGui.ShopGui.ShopClient’, Line 63 – Studio – ShopClient:63
19:00:07.571 Stack End – Studio
translate left/right mouse movement to A/D keypresses respectively
I am looking for a script which will hold down either A or D respectively while the mouse is moving left or right.
I can’t add admin HD
In general, when I add it, it is added, but after I go to install it, the commands do not work. Although it works in another place.
assigning pattern matches in an if statement
I have to move to Lua for a scripting language and trying to recreate a condition I use a lot
assigning pattern matches in an if statement
I have to move to Lua for a scripting language and trying to recreate a condition I use a lot
Lua: How to load/install module json?
I try to use JSON in Lua – I am completely new to Lua.