Still have questions? Join our Discord server and get real time help.
Log in to vote

How would I be able to create a script with code placed in it?

Asked by
uhTeddy 101
2 years ago

This has been a question I wanted to know the answer for, I see plugins do it all the time. I know it is possible but all "Scripting Helpers" answers I have seen so far on various Question is a StringValue and using its value to loadstring(), though when you are using a plugin (like I want to create) you want it to be able to open the script with the code in it, not in a StringValue. Please help if you can.

1 answer

Log in to vote
Answered by
cabbler 1937 Moderation Voter
2 years ago

Since plugins are studio-only and assumed to be trusted there are few restrictions. All you have to do is search the api.

Create and open script:

local scr ="LocalScript",game.StarterGui)
scr.Source = "test"
Thanks! uhTeddy 101 — 2y

Answer this question