Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

When making a script in instance.new how would I actually put code in the 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!

1 comment

0

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

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.