How can I create a secure Lua sandbox?
snippet in lua

How can I create a secure Lua sandbox?

user3724

local env = {ipairs}
setfenv(user_script, env)
pcall(user_script)