Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

2 comments

0

NOTE: Loadstring can be dangerous. Exploiters may have the ability to use it for any use.

0

ashley, i enabled this but it doesnt execute the script, i know it worked before so the script isnt the problem

This discussion is preserved as it was. New answers, comments, and votes are closed.