How to make __index metamethod fire outside the function scope only

image

Hey, how can i make it so the __index metamethod fires just outside the metamethod function and not inside of it, its currently causing a stack overflow and i dont want that.

You’ll have to use the raw keywords to do this. The one you’ll need is rawget to not fire the index metamethod.

1 Like

How would i implement that here

Nvm i got it working. tysm.