I am making a gear for script builder, where when you equip it, a GUI pops up where you can enter some lua code, and execute it. I tried using loadstring, and have LoadStringEnabled enabled. Here is my code:
script.Parent.MouseButton1Down : connect(function()
loadstring("'" .. script.Parent.Parent.TextBox.Text .. "'")()
end)
Here is the error I am getting:
17:45:26.316 - Players.A_Ferret.PlayerGui.ScreenGui.TextButton.Script:2: attempt to call a nil value
