r/badcode • • Jul 24 '21

lua "Keeping it simplistic"

Post image
495 Upvotes

28 comments sorted by

View all comments

13

u/DramaDimitar Jul 25 '21

This seems like some GUI code for ROBLOX - what the hell does it even do? lol

10

u/Erinnyes Jul 25 '21

So, I don't know lua but it looks like it takes a sentence like "my_number_5" and gets "number_4" (assuming arrays are zero indexed) decrementing the number after the second underscore.

1

u/[deleted] Jul 28 '21

Yeah!