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

does loadstring still work? loadstring(print("hi"))?

I had this previous script that would execute a script from what's in the textbox and not it's saying

"loadstring() is not available"

loadstring(CodeBox.Text)

6 comments

2

Yes it works, only, loadstring is turned off from your game for exploit purposes

1

It works, you just need to enable it in ServerScriptService.

0

Also, loadstring returns a function, so loadstring(str)()

2

research plz

0

I recommend sandboxing the loadstring on the server using setfenv to prevent it from destroying your game.

0

If you want to run code in your own game (and only you) just press 'f9' in your game and go to "Log" and navigate to "Server." At the bottom of the Developer Console Window there will be a box for pasting code that is ran on the server.

1 answer

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