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
807 comments
Latest comments
awesomecds7 (0)3 days ago
how about this : a code that uses WORDS (simalar to LOLCODE) but only words lol Screenshot 2021-09-14 8.43.14 AM
Not too crazy, but what if you had opposite syntaxes? I'm gonna leave the replies to give some examples, but here's a short one: "hello" = world print("hello") // Output: world while i < 11: i-=1 //this would add i+1 until its greater than 11 EDIT: Found a slightly crazier idea....have to use morse code to type everything.
try leet... \/4R x = "7#15 15 50/|\3 73x7" \/4R '/ = SO 1f '/ >= SO { |*R1|\|7{x}; } This is the same as: var x = "This is some text" var Y = 50 if Y >= 50 { print{x} }
view all ›
h
3 years ago
Guide to Asking Coding Questions# **Guide to Asking Coding Questions** ## **Why?** Good questions help your question be solved faster, and people will want to answer your questio...
Ask
177 comments
Latest comments
MikeW3 (21)2 months ago
repl.it/feedback and repl.it/bugs are broken links
[deleted]
3 months ago
Is stackoverflow useful?
P0GCHAMPB0i (61)3 months ago
What if I acidently delete my account that has important stuff?
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
Thanks GUys
how do i down vote
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
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
braveheart4577 (0)10 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.
Grify (171)2 years ago
lua.org has pretty good documentation, w3schools has a lua course, and there are official lua 5.1 books for learning
Dart (1202)2 years ago
There are plenty of tutorials in learn!
view all ›
answered
2 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
Coder100 (19278)2 months ago
You can't do that securely, but you could make a post request to a server you set up to execute it.
Highwayman (1537)2 months ago
you could take a look at something like this.
MrVoo (190)2 months ago
Why would you want to do that?
view all ›
answered
9 days 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
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 ›
answered
1 year 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
SixBeeps (5628)1 year 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.
AphixDev (204)1 year ago
To do graphics, you need to make a love 2d repl
view all ›
5 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
candies (435)5 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
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
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
local other_file = require "mainfunc" other_file.randomequation() Like that
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
SixBeeps (5628)2 years ago
Hey @GageCase, how much do you already know about Lua?
view all ›
6 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
Coder100 (19278)6 months ago
no spamming
view all ›
1 month 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
SixBeeps (5628)1 month 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.
oof, I can't understand comments...
view all ›
answered
5 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
Coder100 (19278)5 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 ›
1 year ago
What do I do so it does't say "yesOkay." in the console?![yesOkay.](https://storage.googleapis.com/replit/images/1599800587916_5e2e20247361e85bab8a62eda198df1e.png) Please help me with this.
AskLuaLua
4 comments
Latest comments
@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
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 `
Wumi4 (552)1 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 ›
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 ›
5 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
math.floor(math.random()*max) works for me https://replit.com/@InvisibleOne/RareIdleDividend#main.lua
view all ›
5 months ago
What is the command for wait?What is the command for wait?
AskLuaLua
2 comments
Latest comments
RishabhRanjit (20)5 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
BryceCode (0)2 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() `
Geocube101 (663)2 years ago
If you want to accept/get user input user_input = io.read() `
view all ›
24 days 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
1 comment
Latest comments
@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 ›
1 year 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
Call aula01() And don’t make space on print and ("")
leomanjos (0)1 year ago
Print: http://prntscr.com/s551x4
view all ›
answered
1 year ago
Please HelpI need help making the dice know if you rolled a double or not
AskLuaLua
2 comments
Latest comments
@SixBeeps THank you
SixBeeps (5628)1 year 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
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
a5rocks (812)2 years ago
have you tried look up "lua tutorial" and going through it? I guarantee that will learn something xd
view all ›
answered
2 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
You should use a while loop: https://www.tutorialspoint.com/lua/luawhileloop.html
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
SixBeeps (5628)2 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
Works fine for me...
You don't define user inputinput until the processinput, but you try to use userinput before you run the processinput function.
view all ›
7 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
W4yw4rdMinkThe (0)6 months ago
nvm, it works
view all ›
11 months 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
Coder100 (19278)11 months 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
BrunoHaas (0)1 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 ›
2 years ago
I want to learn how to codeHello, I am asking how to be a pro coder.I want to know all of the secrets that go into it
AskLuaLua
1 comment
Latest comments
* Algorithms* **
view all ›
2 years ago
How to set decimals on the moon?I am doing a circle area code and i need to delimit the number of decimal places, but i do not know how it works on the moon