Make sure script is editable
In order for you to write your own scripts, the stack must not be read only.
Tap the Info menu and select Stack. Make sure that the Read Only switch is OFF.