Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i run a script thats in a textbox without loadstrings?

Asked by 5 years ago
Edited 5 years ago

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()?

1 answer

Log in to vote
0
Answered by 5 years ago

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.

0
yeah but how do i make it in a remoteevent? i know how to make those, but i didn't come up with an idea AlphaSpawn 4 — 5y
Ad

Answer this question