Running sandboxed code

As an alternative you could use vLua or H3x.


While Loadstring will not indefinitely make your game venerable, it’s best to stay away from it if you are a beginner coder because it could allow exploiters to inject a server-side script to just call loadstring for a whole lot of things, like cheats. Good practise would be to stay away from this anyways.