#metatable question
1 messages · Page 1 of 1 (latest)
Yes, __newindex is good for this
https://www.lua.org/pil/13.4.2.html
https://www.lua.org/pil/13.4.4.html
that just detects new indexes tho
suspicious link🥶
you would want to do a proxy table
You can make it update and detect any accesses as shown in the second link
dw i can just check the documentation
Lua’s official website btw 
what suspicious it's literally the documentation of the language
no embed = suspicious🗣️
i literally thought u were gonna say that too
but with 2 people saying its fine then it most likley is
i was sitting here like ”this mf will definitely say ’no embed so it’s sus’” 💀
Official website of the Lua language
I'd not recommend you do this if you need to calculate/cache a result or especially if you yield there
Just make a get method like getSmth/getSmthAsync
This way you for sure won't mess up inheritance and will make it more readable and you will be able to pass arguments to the function
And it's just a more common approach in general
I'm talkin about this https://www.lua.org/pil/13.4.4.html
man i gotta be honest
i got no clue what you just said