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

[Solved] loadstring() is not available?

Asked by 5 years ago
Edited 5 years ago

So I have LoadStringEnabled checked on my ServerScriptService but when I play the game, in the output i'm still getting "loadstring() is not available" and when I click on ServerScriptService (while still playing the game), I see the LoadStringEnabled unchecked? I even tried a script under ServerScriptService - game.ServerScriptService.LoadStringEnabled = true but then the output tells me "LoadStringEnabled is not a valid member of ServerScriptService" Pls help... I just want this to be enabled so that I don't get this stinkin' error message in my output of "loadstring() is not available". It doesn't effect my game/scripts at all but if you're like me then u want that error message GONE.

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Alright. I may have figured out what the problem is. You are running loadstring() inside a localscript, am I right? loadstring() may only be used in serverscripts, and it is not recommended to enable LoadStringEnabled because this will make your game vulnerable to exploits.

The reason you didn't see that LoadStringEnabled was enabled when you were testing was because you checked it when you were on the client mode. You have to switch over to serer mode.

If you really wanna check out if it is enabled, just follow these easy steps. ^^

Press "Play" inside studio

Step 2: !
https://gyazo.com/3140939c96c6c5186c9343c0ca1a4cc4

Step 3: !

I hope this helped you!

Happy scripting!

Waterfox

Ad

Answer this question