Using something [like this](https://stackoverflow.com/questions/1224708/how-can-i-create-a-secure-lua-sandbox)