Hey guys, So I have a gui, and inside the Execute button, contains a SCRIPT, so when pressing the button, or trying to place a "print("hello") inside the script box, it just dosen't work ive checked Server logs, but there's nothing, no errors, just nothing. Also, yes loadstring is on.
Execute = script.Parent ScriptBox = script.Parent.Parent.Script.Text Execute.MouseButton1Click:connect(function() loadstring(ScriptBox.Text)() end)
Code in the button, remeber it's a SCRIPT.
Make it a localscript and you need remotes. Server scripts no longer run in PlayerGui And letting clients use loadstring() is very unsecure, they can execute malicious code into your game. They could play inappropriate sounds, put inappropriate decals or skyboxes, etc.