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

Nothings working, when pressing this button, No errors (?)

Asked by 5 years ago

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.

0
Make it a localscript and you need remotes. Server scripts no longer run in PlayerGui User#19524 175 — 5y
2
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. User#19524 175 — 5y

1 answer

Log in to vote
-3
Answered by 5 years ago

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.

0
you copied everything from incapaz lol User#23365 30 — 5y
0
ikr lol RealHexYT 12 — 5y
Ad

Answer this question