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

[SOLVED IN COMMUNITY CHAT] loadstring doesn't run commands ?

Asked by 6 years ago
Edited 6 years ago
local Frame = script.Parent
local Code = Frame.Code
local Exe = Frame.Exe
local Clear = Frame.Clear

game.ServerScript.Loadstring = true

Exe.MouseButton1Click:connect(function()
    print(Code.Text)()
end)

Clear.MouseButton1Click:connect(function()
    Code.Text = " "
end)

so i made a gui that should run codes. but when i click on "Exe" it doesn't run the code.

Answer this question