#The best way to load functions without knowing their name (without using _G)

21 messages · Page 1 of 1 (latest)

magic vine
#

Hey, I'm writing code that iterates through a while loop to run functions in my code by using _G. A lot of languages chastise you for using _G in your code, so is there a better way to run the attached code?

#

Code (had to reupload so it didn't look ugly as heck):

magic vine
royal iron
#

yo

#

why dont you just

#

copy paste the code

#

into this format

#

'''lua
[code]
'''

magic vine
#

Too long

magic vine
#

You can change the syntax formatting to lua using the <>button next to the download button

#

I know it's annoying, and I tried to do it like that before. It sucks because it's not even that long (just 61 lines). Sorry man, hope you can still help me though

magic vine
#

Not right now though-- I'm still writing

magic vine
royal iron
#

I can't help w that gng I can barely read it

magic vine
#

But I didn't realize you already solved it lol

royal iron