I am currently testing a strict custom environment in lua that takes advantage of _G and sets it to a locked metatable,I then uses the __call metamethod of that metatable to sandbox any scripts I need to. This restricts access to most functions and the entirety of the debug library. I have left rawget/rawset out for now and I am intrigued as to whether I can override the locked _G metatable using rawget/rawset. Thank you if you are able to help with my question.
-- Edit Also if you would be able to post an example of a properly sandboxed rawset/rawget that would be awesome!