Hi there, I want to make a script editor and sort of disable some things like using modules and stuff, but I can code that in myself. My problem is that I don’t know how to create a script and set the script’s code to be the Text that the user inputs. How would I do that? And is there a way to use HttpService and create a new pastebin and get the link of that if there isn’t any other way?
Enable the “LoadStringEnabled” property of ServerScriptService.
Doing so grants access to the “loadstring()” global function.
https://developer.roblox.com/en-us/api-reference/property/ServerScriptService/LoadStringEnabled
1 Like
Does this allow me to do something like this and make it print hello?
script:LoadString("print('hello')")
Scripts inside the SSS have access to the loadstring()
global function, so you can simply do the following.
f = loadstring("print(\"Hello world!\")")
f()
1 Like