When making a script in instance.new how would I actually put code in the script?
COMMUNITY QUESTION
When using instance.new how would you put a script in a script?
3 answers
Sadly, scripting a script from a script is not possible. Instead just create a script, script it ahead of time, then clone it.
I asked the same question, and someone told me the same thing.
Accept if this helps!
You would have to use a plugin and do Script.Source. Thats pretty much the only way besides cloning a script.
You have to do this at the very end of your script: local scriptClone = script:Clone() scriptClone.Parent = -- where ever u want to place the script
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Instead of Instance.new, you can do: local ScriptEdit = script:Clone() ScriptEdit.Parent = -- where you want to put it