Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

loadstring() Is not available?

Asked by 4 years ago
Edited 4 years ago

So I made a script builder script, because i'm a fan of script builder, And it gives me this error: "loadstring() is not available"

The script is this:

function Clicked()

    if script.Parent.Parent.Execute.Text ~= nil then
        spawn(function()
            loadstring(script.Parent.Parent.Execute.Text)()
        end)
    end
end


script.Parent.MouseButton1Click:connect(Clicked)

And the error is at the line 5: "loadstring(script.Parent.Parent.Execute.Text)()"

0
You need to enable loadstring, to do this go to ``ServerScriptStorage`` and tick the ``LoadstringEnabled`` option SuperSamyGamer 316 — 4y
0
i believe you also need to change ~~~~~~~~~~~~~~~~~ loadstring(script.Parent.Parent.Execute.Text)() ~~~~~~~~~~~~~~~~~ to ~~~~~~~~~~~~~~~~~ loadstring(script.Parent.Parent.Execute.Text,true)() ~~~~~~~~~~~~~~~~~ Gameplayer365247v2 1055 — 4y

Answer this question