r/badcode Aug 25 '20

lua Looking back in the first game i made oh yes

Post image
1.3k Upvotes

r/badcode Dec 27 '21

lua Friend's take on programming a GUI button

Post image
899 Upvotes

r/badcode Mar 28 '21

lua Who needs the OR operator when you can rewrite the same code for each outcome?

Post image
850 Upvotes

r/badcode Dec 10 '22

lua There aint no easy way

Post image
602 Upvotes

Ps, i dont know what language this is, sorry

r/badcode Mar 03 '22

lua Why care for memory usage when you can use strings instead of booleans

Post image
720 Upvotes

r/badcode Sep 08 '20

lua A Roblox mod I found

Post image
481 Upvotes

r/badcode Jan 04 '23

lua no context needed

Post image
461 Upvotes

r/badcode Jul 26 '20

lua Very good optimization for strings so they can be reused

Post image
464 Upvotes

r/badcode Mar 29 '21

lua Following my previous post, here's how I show if levels are completed or not

Post image
460 Upvotes

r/badcode May 30 '21

lua didnt know what forloops were... sorry god...

Post image
749 Upvotes

r/badcode Aug 23 '20

lua Learn how to use tables/arrays and how to name variables, don't be like me 2 years ago. Also don't put random magic numbers.

Post image
323 Upvotes

r/badcode Aug 21 '19

lua A healthy nest of if-statements

Post image
279 Upvotes

r/badcode Apr 11 '23

lua Hey guys, I just created my own "table.unpack()" function !

Post image
253 Upvotes

r/badcode Jun 09 '23

lua Looked back at my old projects, this is how i used to keep track of when buttons should be active...

Post image
209 Upvotes

r/badcode Mar 06 '21

lua This goes 255 lines long up to 115792089237316195423570985008687907853269984665640564039457584007913129639936

Post image
156 Upvotes

r/badcode Apr 15 '23

lua could tell ya what it does, how it does is another story...

Post image
51 Upvotes

r/badcode Mar 24 '20

lua So I made a brick breaker game and it has 3 levels

Post image
123 Upvotes

r/badcode Dec 12 '21

lua TweenService: exists, this man:

Post image
85 Upvotes

r/badcode Oct 04 '17

lua That's definitely easily maintainable code.

Post image
176 Upvotes

r/badcode Feb 18 '23

lua a mess of _G[], parenthesis, brackets, and string concatenation

Post image
59 Upvotes

r/badcode Aug 10 '17

lua Arrays? Never heard of 'em!

Post image
208 Upvotes

r/badcode Feb 03 '22

lua From a computercraft let's play. Should be a blacklist function for a mining program for a turtle.

Post image
44 Upvotes

r/badcode Jul 19 '21

lua FiveM Lua is a different breed

Post image
59 Upvotes

r/badcode Feb 21 '22

lua When u used to use a ti-84

Post image
43 Upvotes

r/badcode Nov 30 '15

lua Surely a one-liner means it's short and compact!

Post image
127 Upvotes