You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contrary to what Roblox does, I would like to have all scripts for my project run directly on the main lua state. This means not creating any threads. I will still sandbox the state after loading libraries & globals.
Is it fine to call luaL_sandbox() and luaL_sandboxthread() on the main state, or should I create a single thread after sandboxing the main state & then load all scripts inside it after sandboxing the thread?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Contrary to what Roblox does, I would like to have all scripts for my project run directly on the main lua state. This means not creating any threads. I will still sandbox the state after loading libraries & globals.
Is it fine to call
luaL_sandbox()andluaL_sandboxthread()on the main state, or should I create a single thread after sandboxing the main state & then load all scripts inside it after sandboxing the thread?Beta Was this translation helpful? Give feedback.
All reactions