How would I be able to convert a StringValue into code and run it?

I want to make it, so when you input code into a StringValue, it runs. I’ve tried script.Source, but it kept printing The current identity (2) cannot Source (lacking permission 1). Please help if you can!

You can only access a script’s source through plugins

Enable LoadStringEnabled through ServerScriptService
and do

loadstring("code")() -- replace "code" with the StringValue's value

(server only)

1 Like

is there any possible solution that we can fix the “vulnerable to exploits” thing?

That’s a message telling you that if you let the client request the server to run code, exploiters can do things with it. It’s just a warning message and doesn’t affect anything