-
So, I am making a service where each user provides some Luau code, and I run each one seperately, concurrently. Is there a way to utilize a single Lua struct to do this instead of doing Also, I do not want the code of different users to affect each other. I want it all to be isolated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could try setting sandbox mode for Luau and executing each chunk in isolated environment. There are few options:
You can even make environment readonly and prevent any writes to globals. Personally I would try №3 |
Beta Was this translation helpful? Give feedback.
You could try setting sandbox mode for Luau and executing each chunk in isolated environment.
There are few options:
Thread
sandbox see this doc. Sorry it's a hidden functionality but should work!You can even make environment readonly and prevent any writes to globals.
Personally I would try №3