Is it possible to get a script from a textbox? If so, please tell me how!

The title may be confusing. What i mean is like when someone puts a script in a TextBox object and presses the confirm button, it runs the script. The game is supposed to be a script testing game for people that don’t have a computer that they can use. Can someone please tell me how to do it if it is possible?

Try using loadstring.

Maybe:

loadstring(script.Parent.ContentText)()

Make sure LoadstringEnabled is enabled in ServerScriptService properties.

Note: you must use a remote event that you fire upon enter key press in the text box, and that remote event runs the above code

1 Like