I'm probably saying "I want to make a... game" alot, but I just have a lot of ideas.
I want to make a game that allows players to make and publish their own games with nearly zero coding experience, i.e a block coding game. I have an idea for how to connect blocks, but for special blocks (e.g a loop block) I don't know how to edit the block it's trying to edit. Is this possible?

3 comments
This answers your question: https://scriptinghelpers.org/questions/67260/is-there-a-way-to-write-into-scripts-or-edit-scripts-from-other-scripts
The closest thing you can use is loadstring(), which executes a given function.
IF you are doing a Plugin, there is a possibility you can do script.Source = "print('Hello World!')" and it will work. But yeah, like BashCaster said, the closest you can get to is loadstring().