New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

loadstring() Is not available?

Asked by 3 months ago
Edited 3 months 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 311 — 3mo
0
i believe you also need to change ~~~~~~~~~~~~~~~~~ loadstring(script.Parent.Parent.Execute.Text)() ~~~~~~~~~~~~~~~~~ to ~~~~~~~~~~~~~~~~~ loadstring(script.Parent.Parent.Execute.Text,true)() ~~~~~~~~~~~~~~~~~ Gameplayer365247v2 729 — 3mo

Answer this question