r/badcode • u/MEGATH0XICC • Dec 10 '22
lua There aint no easy way
Ps, i dont know what language this is, sorry
606
Upvotes
r/badcode • u/MEGATH0XICC • Dec 10 '22
Ps, i dont know what language this is, sorry
169
u/SkyHawkPilot77 Dec 10 '22
It's Roblox Lua
40
u/Rrrrry123 Dec 10 '22
Yeah, as another commenter said, this is Roblox Lua. You have to understand that most the scripts you'll see from Roblox are just (literal) kids copying from tutorials/other scripts without understanding fundamental control structures (or sometimes even things as basic as variables).
I used to do Roblox tutorials on YouTube; most kids do not want to learn how to program. They want to learn how to make a specific feature for their game function and then move on. I'd be lucky if someone watched the whole video and didn't just skip to the end to copy down what I'd written (which would often cause them to miss things and cry in the comments that my code didn't work).
54
u/barabum0 Dec 10 '22
loops?
5
u/tribak Dec 10 '22
Wait
70
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 10 '22
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
21
u/bakeneko__ Dec 10 '22
Is there any way to unsee this???
13
u/nodeymcdev Dec 10 '22
This code is really throwing me for a loop
9
u/[deleted] Dec 10 '22
dude just use TWEEN FUCKING SERVICE
9
u/memes_gbc Dec 11 '22
most efficient roblox script
8
u/PhysicalTrack4318 Dec 10 '22
I’m in serious emotional pain right now
8
u/Weary-Ad8825 Dec 10 '22
U may not like it but this is what peak performance look lik
7
u/yiffboy16 Dec 11 '22
Oh my, this physically hurts … but it’s exactly the code I would expect from a Roblox developer.
3
u/Blacklion594 Dec 10 '22
My reaction to this was to scream from my bed at 9am
3
u/[deleted] Dec 11 '22
SHIFT+ALT + ↓
2
u/Honza5544 Dec 11 '22
I remember seeing this code before! Isn't this from the area 51 map doors?
2
u/[deleted] Dec 11 '22
typical roblox programmer(I programmed for roblox for like 5 years lol)
2
u/Gooberg_ Dec 11 '22
As a Roblox Lua programmer, I can say that this is indeed bad code.
2
u/IslamicOperations Dec 13 '22
TweenService? Whats that?????
2
u/Cookie_clicker2 Dec 14 '22
Since this is Roblox, you could use the service TweenService, it can do exactly this but in like 3 lines.
2
u/default-username-2 Jan 25 '23
Who needs for loops, when there's ctl+c, ctrl+v
2
u/fnieidhfenmbvfekh Apr 07 '23
For loops be like:
1
u/deniercounter Dec 10 '22
RY-principle in the wild
1
u/[deleted] Dec 10 '22
There really needs to be a different sub for stuff like this. "/r/compsci101" or "/r/freshmanprogram" or something. /r/badcode is less interesting when it's just people unfamiliar with the basics over and over.
1
u/top_of_the_scrote Dec 10 '22
shear will power
1
u/friendly_devil Dec 10 '22
😱
1
u/rhysmorgan Dec 11 '22
This is actually the leaked source code for Pokémon Scarlet and Violet
1
u/[deleted] Dec 11 '22
average roblox code in ohio
-27
u/Opinionated_by_Life Dec 10 '22
That looks some sloppy code a Micro$oft compiler would output. That is just nasty.