So, I wanted to do an admin command that when you say it in chat, it shows you a executor GUI. I was testing the GUI (I used loadstring()) but it showed an error: loadstring() not available and I don't want exploiters ruining my game with loadstrings. How could I make it so i can run the script without using loadstring()?
I was testing the GUI (I used loadstring()) but it showed an error: loadstring() not available and I don’t want exploiters ruining my game with loadstrings.
That is because ServerScriptService.LoadStringEnabled
is not enabled. You can enable it in properties.
loadstring
can only be used on the server side
. The reason loadstring is made so dangerous is if you're letting clients send string code to the server. And the server executes that code from the server. Other than that you should be fine.
You will need remotes. I strongly strongly strongly encourage that you add checks on the server side (like the user is admin, they have the privileges, ect.) to make sure exploiters don't abuse loadstring.