setfenv
Example
Use setfenv to create a sandbox
Output: [Sandbox] Hello
Script:11: attempt to index global 'string' (a nil value)
Sets the environment for a function or a stack level. Can be used to sandbox code.
Use setfenv to create a sandbox