Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

0

Make it a localscript and you need remotes. Server scripts no longer run in PlayerGui

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.

1 answer

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.

2 comments

0

you copied everything from incapaz lol

0

ikr lol

This discussion is preserved as it was. New answers, comments, and votes are closed.