Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When using instance.new how would you put a script in a script?

Asked by 4 years ago

When making a script in instance.new how would I actually put code in the script?

3 answers

Log in to vote
0
Answered by 4 years ago

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!

0
Instead of Instance.new, you can do: local ScriptEdit = script:Clone() ScriptEdit.Parent = -- where you want to put it bayceee 0 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

You would have to use a plugin and do Script.Source. Thats pretty much the only way besides cloning a script.

Log in to vote
0
Answered by 4 years ago

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

Answer this question