For some odd reason the error reads out “attempt to call a Instance value”, please let me know
if you know how to solve this, thanks (:
You didn’t use require
.
local vm = require(bin.loadstring)
That’s a problem with the loadstring
module
Is it possible that you have other links to some of them I can use?
Why don’t you just use the integrated loadstring()
that roblox provides?
There are no security issues unless you make that vulnerability yourself, such as letting a user execute it via a RemoteEvent with their own arguments.
You could use this:
The reason I don’t want to use loadstring is because I am creating something that should potentially protect scripts, I am making this open source and open to public use, I dont want to force a user to use it + they may have a vulnerability
How would scripts be ‘protected’?
Any server script is secure from exploiters, if that’s what you’re referencing. On top of that, loadstring can only be run on the server, so it wouldn’t provide any additional security to LocalScripts…?
local env = getfenv(0)
getfenv.newproxy = nil
setfenv(0, env)
I assume they want to create a custom sandbox by removing certain globals.