I am wondering if you can edit a script by using other scripts: Like to change the script's code with the help of another script?
Yes. Every script has a Source
property which is the code that it contains.
1 | local aScript = workspace:WaitForChild( "Script1" ) |
2 | local otherScript = workspace:WaitForChild( "Script2" ) |
3 | otherScript.Source = aScript.Source |
The above code will set one of the script's code to the content of the other script.
Hope this helps! :)