top contributors since
Coder100
RYANTADIPARTHI
ch1ck3n
InvisibleOne
Bookie0
SixBeeps
RayhanADev
BobTheTomatoPie
ruiwenge2
JBloves27
view leaderboard →
h
3 years ago
Guide to Asking Coding QuestionsGuide to Asking Coding Questions Why? Good questions help your question be solved faster, and people will want to answer your question Bad question
Ask
179 comments
Latest comments
KS-11ZZ-94397126 days ago
how to ask how many courses you're taking
EthanRachall30 days ago
Hi can someone help me fix my code? The background color won't work on my Python Turtle code, Link is here: https://replit.com/@EthanRachall/mountain-range-1#main.py
MikeW33 months ago
repl.it/feedback and repl.it/bugs are broken links
view all ›
h
1 year ago
Wildest programming language ideaWhat is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones. Go! Also on le twatter: https://twit
Ask
835 comments
Latest comments
DaxCodes10 days ago
RTexter can make movie scripts/other fun things with text
JonDoeBeep12 days ago
A lanuguage where you can use only the word: I. For example this program in binary from bloomu 111000101101101011101110111000010110101111101101101011011110111011101100111010110001000000001100111111101010101010100010010101101011111011101110111000100001101011011110101011011101111011111110101011101101101010011010100110111111110000000010000111001010110111101100111011010000000011011100110110100010101000101100101010101100111010111111110000000010000111001010110111101100111011010000000010101111110110100
SebastjanTekavc14 days ago
hi
view all ›
2 years ago
Hey guys how do u make graphics without Love and stuffI want to make a 2D game but im stuck.Someone Please Help thanks!
AskLuaLua
13 comments
Latest comments
GabrielCuevas12 years ago
Thanks GUys
JamesGregory22 years ago
how do i down vote
JamesGregory22 years ago
everything is made with love and stuff
view all ›
answered
2 years ago
How do I disable auto () in the IDE?I want to know so I can have maximum control over my code. I hate auto indices and auto quotes.
AskLuaLua
1 comment
Latest comments
WilliamPenrod2 years ago
In the settings tab, disable code intelligence. Its enabled by default. Its disabled in the picture below. image > If this helped, mark it as the answer :)
view all ›
2 years ago
Can someone teach me Lua? I need to learn Lua so I can amke games like here, and on roblox to develop ideas and make a community, you're free to join my community!
AskLuaLua
3 comments
Latest comments
braveheart457711 months ago
there are many resources for this. Roblox provides the basics of coding here: https://developer.roblox.com/en-us/learn-roblox/coding-scripts Not only that but there are many youtubers who can show the basics of lua such as AlvinBlox, The Devking, etc.
Grify2 years ago
lua.org has pretty good documentation, w3schools has a lua course, and there are official lua 5.1 books for learning
Dart2 years ago
There are plenty of tutorials in learn!
view all ›
answered
3 months ago
how can I run a bash/shell script on a web pagehow can I run a bash/shell script on a web page?
AskLuaLua
10 comments
Latest comments
Coder1003 months ago
You can't do that securely, but you could make a post request to a server you set up to execute it.
Highwayman3 months ago
you could take a look at something like this.
MrVoo3 months ago
Why would you want to do that?
view all ›
answered
2 years ago
Can You Make A Screen?Can you make a screen or is it only the console? (project attached has nothing to do)
AskLuaLua
2 comments
Latest comments
SixBeeps2 years ago
A few graphical languages exist on Repl.it. I'm not sure if Lua has any, but things like Love2D, Pygame, Tkinter, etc. have their own separate language options.
AphixDev2 years ago
To do graphics, you need to make a love 2d repl
view all ›
6 months ago
What Should I Try To Add To This Simple Guess The Number Game? So I Am Slowly Learning Lua And I Made This Simple Guess The Number Game Where You Have To Guess A Number That Is Generated From A LowestNumber And Hi
AskLuaLua
8 comments
Latest comments
candies6 months ago
you can add levels and difficulties. im currently full of ideas, chat with me on https://3o2.co/dkx (contochat)
view all ›
2 years ago
Wait functionI need to have a working wait function. Can you give me a command please? Thanks.
AskLuaLua
11 comments
Latest comments
Highwayman2 years ago
Ah.. just one google search away: https://stackoverflow.com/questions/17987618/how-to-add-a-sleep-or-wait-to-my-lua-script
view all ›
answered
2 months ago
How do I make a scripting language?Ok so I want to make a scripting language called Wolf. But there is one big fat problem: i have no idea how to make a scripting language so pls help
AskLuaLua
4 comments
Latest comments
Coder1002 months ago
have you tried reading craftinginterpreters? https://craftinginterpreters.com A programming language takes a lot of time to develop, here's the stage (at least the easiest way). lexing here you turn text into words in a way, usually called tokens parsing here you turn the tokens into a 'tree', in other words using pemdas and things like that interpreting using that tree you made, you interpret it by recursively calling it.
view all ›
2 months ago
Output skipping characters?Idk if this is me, or its a server wide issue, but in this simple generator I created, the output would skip over characters. Those characters are sti
AskLuaLua
4 comments
Latest comments
samfierycreeper2 months ago
@furryman29 I just ran your program here: https://replit.com/@furryman29/PasswordGenerator and I didn't get a problem like that. It could have been Replit's console acting up. Yes
view all ›
2 years ago
I'm new Hey I'm new Could i get some beginner tips for LUA?
AskLuaLua
6 comments
Latest comments
SixBeeps2 years ago
Hey @GageCase, how much do you already know about Lua?
view all ›
answered
3 months ago
Run a function from a separate fileHow do I run a (Lua) function if it is from another file? (See Files)
AskLuaLua
3 comments
Latest comments
InvisibleOne3 months ago
local other_file = require "mainfunc" other_file.randomequation() Like that
view all ›
8 months ago
dunno how to sort out the errors i keep getting for the lines 310 - 344it displays the text box, but the text doesn't say what its supposed to say, all it says is "title" and "message". when i get rid if these, i keep get
AskLuaLua
4 comments
Latest comments
Coder1008 months ago
no spamming
view all ›
1 year ago
What do I do so it does't say "yesOkay." in the console?yesOkay. Please help me with this.
AskLuaLua
4 comments
Latest comments
PattanAhmed1 year ago
@LANDONHALL Hi, Change your code like this:- io.write('Enter your name: ') name_input = io.read() io.write("Enter your age: ") age_input = io.read() io.write("Hello, " .. nameinput .. ', you are ' .. ageinput .. ' years old, is that correct?: ') reply = io.read() if reply == ('yes') then print('Okay!') -- Additionally, I added this if you want you can remove it too:- print(name_input) end That's it Thanks! Hope this helps
Coder1001 year ago
Because io.write('yes') will print out yes and then return true and so then it will print ok. To solve the problem, compare reply1 instead of printing out the expected input smh if reply1 == 'yes' then print ('okay. ') end `
Wumi41 year ago
This is very simple to fix. On line 9 at your repl, fix with this line of code: if reply1 == ('yes') then print(' Okay.') Have a nice day!
view all ›
answered
6 months ago
Print without newline in lua?I'm trying to make a function that prints a specified line without creating a newline every time. io.write hasn't been working(nothing is written unti
AskLuaLua
3 comments
Latest comments
Coder1006 months ago
don't forget to also flush io.write('hai') io.flush() reason: because all text is buffered from the terminal, nothing will print until a newline occurs.
view all ›
2 months ago
"Unable to format" to auto-formatI clicked the auto-format code button and the entire contents of the file disappeared and was replaced by Unable to format /tmp/format_file713564743:
AskLuaLua
2 comments
Latest comments
SixBeeps2 months ago
Verrrry strange. Definitely a bug. For now, just go back into the file's history and restore it to an older version. Also, what steps did you take before auto-formatting? I haven't used Lua's autoformatter, so it could be an error with that. EDIT: I just tried the autoformatter on some small-scale code and it seemed to work just fine. Maybe there was something specifically with your code that triggered it, but it's hard to say.
ErrorbotTHE2nd2 months ago
oof, I can't understand comments...
view all ›
2 years ago
How do to load and play a sound in Lua?I've been trying to load and play a sound in my files, it can be seen in the attatched link below.
AskLuaLua
4 comments
Latest comments
[deleted]
2 years ago
unfortinarly, repl does not support sound
view all ›
h
11 days ago
How to let lua read a file inside a folder on the leftVery new and when i follow along with a video he states that has running the Lua from the file how do i do it without having to put the print world st
AskLuaLua
1 comment
Latest comments
SixBeeps11 days ago
Does the tutorial use Replit? If yes --> Link me the tutorial If no --> Learn how to use the .replit file and make the Repl run the command lua Lua/myscript.lua
view all ›
6 months ago
math.random keeps picking the same numbers every time you play?When I play and it chooses a random number, it ends up being the same numbers most of the time, is there any fix to that? Example: The first number w
AskLuaLua
2 comments
Latest comments
InvisibleOne6 months ago
math.floor(math.random()*max) works for me https://replit.com/@InvisibleOne/RareIdleDividend#main.lua
view all ›
7 months ago
What is the command for wait?What is the command for wait?
AskLuaLua
2 comments
Latest comments
RishabhRanjit7 months ago
@NEONLIMITS There is none. You can make your own using require() -- Should be at top socket = require("socket") function sleep(sec) socket.select(nil, nil, sec) end -- sleep(5.2) You can then turn the code to socket = require("socket") function sleep(sec) socket.select(nil, nil, sec) end while true do wait(1) end `
view all ›
answered
2 years ago
Help!Hi guys. I just want to know how to set a working enter something lua thing. Can you help?
AskLuaLua
3 comments
Latest comments
BryceCode2 years ago
I think you're trying to get user input to see what user they are, best way to do this is to: print("Hello "..io.read()..".") that would output the user's name typed in the console field. but if you wanna store the name its: name = io.read() `
Geocube1012 years ago
If you want to accept/get user input user_input = io.read() `
view all ›
29 days ago
Something in this repl isn't working.For some reason, it won't run main.lua. Can anyone help me?
AskLuaLua
1 comment
Latest comments
emilyDoesPascal29 days ago
Edit your .replit file so that run = "lua main.lua"
view all ›
2 years ago
Run don't workI'm trying to put a simple code to Run and it simple don't work. It was working 3 days ago then it's stopped and never worked anymore
AskLuaLua
2 comments
Latest comments
TheForArkLD2 years ago
Call aula01() And don’t make space on print and ("")
leomanjos2 years ago
Print: http://prntscr.com/s551x4
view all ›
answered
2 years ago
Please HelpI need help making the dice know if you rolled a double or not
AskLuaLua
2 comments
Latest comments
Trollertowner2 years ago
@SixBeeps THank you
SixBeeps2 years ago
if dice1 == dice2 then -- Do something end `
view all ›
2 years ago
I need HelpHi I'm very new to coding and I would appreciate it if anyone could give me some lessons on primarily Lua coding. I would also appreciate python or ja
AskLuaLua
2 comments
Latest comments
RomeroSchwarz2 years ago
When I started python, I used w3schools to learn the basics. GeeksForGeeks is also a great resource. > If this helped, mark it as the answer
a5rocks2 years ago
have you tried look up "lua tutorial" and going through it? I guarantee that will learn something xd
view all ›
2 years ago
LuaDoes anyone have good knowledge or previous experience with lua. That can give me some help tips and tricks.
AskLuaLua
2 comments
Latest comments
SixBeeps2 years ago
I have some. Do you need something in particular?
view all ›
2 years ago
Nil user valueThe users in the first two lines of code are appearing to be a nil value. It was working before. Can anybody help me?
AskLuaLua
2 comments
Latest comments
MatthewDoan12 years ago
Works fine for me...
LeonDoesCode2 years ago
You don't define user inputinput until the processinput, but you try to use userinput before you run the processinput function.
view all ›
answered
4 months ago
respinninghow do i make it so i dont need to restart the game when i want to respin?
AskLuaLua
1 comment
Latest comments
InvisibleOne4 months ago
You should use a while loop: https://www.tutorialspoint.com/lua/luawhileloop.html
view all ›
8 months ago
controls not working after updating setReferencePoint to anchorso i just updated lines 234, 323 & 332 so that i wasn't using old (graphicsCompatibility 1.0) code and now my controls aren't working with the updated
AskLuaLua
1 comment
Latest comments
W4yw4rdMinkThe8 months ago
nvm, it works
view all ›
1 year ago
How to run codeI use lua. Is there a tutorial how to use your GUI? It seems to me, that I need to make a main.lua. But how to call funktion in other files?
AskLuaLua
1 comment
Latest comments
Coder1001 year ago
read this -- main.lua require "stringTest" stringTest() `
view all ›
1 year ago
Oq tem de errado aq?Ele não indica erros aí quando executo no GMOD ele da erro no console e o MOTD não funciona(para quem não entendeu esse é um MOTD do TheCodingBeast) E
AskLuaLua
1 comment
Latest comments
BrunoHaas1 year ago
Ele da esse erro no console "[ERROR] addons/darkrpmodification-master/lua/darkrpmodules/tcbmotd/cl_motd.lua:95: bad argument #1 to 'OpenURL' (string expected, got nil) OpenURL - [C]:-1 DoClick - addons/darkrpmodification-master/lua/darkrpmodules/tcbmotd/cl_motd.lua:95 unknown - lua/vgui/dlabel.lua:237"
view all ›