This is the code:
module.Codes = {
["FreeMoney"] = function()
end;
}
How can I call the function and also get the name(which in this code is "FreeMoney")? Something like this:
module.Codes.FreeMoney.Name
module.Codes.FreeMoney()
`
I simply want two things:
- The string:"FreeMoney"
- The function
Please tell me if it is possible and if it is then how can I do it.

6 comments
only thing i know ur doing wrong here since im a bit tired is ur coding with java or javascript(idk the differens), this is not either of them this is lua
the most logical thing is the __call metamethod for the function, and make "FreeMoney" a dictionary with a "Name" key
I have posted a lua code.
theking48989987 I will try your method.
it is definitely possible, I created a working example
theking48989987 it worked! Thanks so much!!!!!!!!