Use loadstring on client?

So I want to make a not sandboxed lua execute bar.
I want players to be able to mess with the game but not server sided.
I would just use loadstring but players would be able o execute scripts that would dump server only stuff to workspace then save instance on their exploits. I understand the risk but it is annoying when i cant do what i want because of this. Ive tried using loadstring and a few modules but i cant require and as i said i dont want this to be server sided or sandboxed

2 Likes

You can use this module. vLua: Loadstring reimplemented in Lua - Roblox
Use it with require(module)(code, getfenv())

5 Likes

Doesn’t vLua sandbox the code?

I think that is what the second argument is for.

2 Likes