I want to make a plugin that creates scripts based on blocks,but i don't know how to change the source of a script. Can someone help me?
To change the source of a script is only possible when using plugins. Here's an example.
local NewScript = Instance.new("Script",workspace) NewScript.Source = [[ print("This is my script!") ]] --changing the source print(NewScript.Source) --printing the source (getting the source)
Please accept my answer if this helped!