Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

loadstring() Is not available?

Asked by 9 days ago
Edited 2 days 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 236 — 9d
0
i believe you also need to change ~~~~~~~~~~~~~~~~~ loadstring(script.Parent.Parent.Execute.Text)() ~~~~~~~~~~~~~~~~~ to ~~~~~~~~~~~~~~~~~ loadstring(script.Parent.Parent.Execute.Text,true)() ~~~~~~~~~~~~~~~~~ Gameplayer365247v2 435 — 9d

Answer this question