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

Loadstring wont work for client-side script how do i fix this?

Asked by 6 years ago

in studio, my script works fine but when i try in regular roblox, i get a loadstring() is not available error, after googling i found this: Roblox wiki - security but i need to use this because i have no idea on how to execute a script by itself from a value.

here is the original code:

repeat wait() until script:findFirstChild("Code")
loadstring(script.Code.Value)()

but it doesnt work anymore.. so then i tried to make it create a script in workspace and attempt to move it to the player and it doesnt work! please help me!

1 answer

Log in to vote
0
Answered by 6 years ago

Enable the "LoadStringEnabled" value in the properties of "ServerScriptService". It's a security feature to keep some skids away.

0
**NOTE**: Loadstring can be dangerous. Exploiters may have the ability to use it for any use. TheePBHST 154 — 6y
0
ashley, i enabled this but it doesnt execute the script, i know it worked before so the script isnt the problem samdisk11 2 — 6y
Ad

Answer this question