How to change code through a plugin?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BlockOG

I want to make adding some things to a pause and save plugin easier by making a ui and I don’t know how to automate making code so I input some things it converts those into a string of text and puts it into a script. How do I do that?