THIS IS SOLLLVVVEDDDD!!!!!!!!
So I remember a way that you could make a new script within a script and could make the new script have code in it.
It was something like this:
local script=Instance.new("Script") script. I DONT KNOW WHAT TO PUT HERE = [[ print("Hello world!") -- You could put a whole script in here. ]]
Instance.new("Script",game.Workspace).Source="print(\"Hello World! v2\")"
Although script.Source is locked so this method would not work.
Perhaps have the script pre made in ServerStorage and then clone it?
Here try this. I do not promise anything
script = Instance.new("Script", workspace) code = Instance.new("StringValue", script) code.Value = "InsertScriptHere" loadstring(code.Value)()
That loads the code's value as a script. If you have a string?
script = Instance.new("Script", workspace) code = Instance.new("StringValue", script) code.Value = "print('Hai')" loadstring(code.Value)()
Note: I didn't put " because that'd error it. I put an ' so then it doesn't mess with the string it is in.