Env = {} function Env.Sandbox(opts) local env = { string = string, table = table, type = type, utf8 = utf8, pairs = pairs, ipairs = ipairs, select = select, tonumber = tonumber, tostring = tostring, next = next, math = math, error = error, getmetatable = getmetatable, } opts = opts or {} for key, value in pairs(opts) do env[key] = value end return env end