I’ve edited your script for you.^
Also, if you want to: you can change the opacity commands to “opacity 1 in 0” which is shorter and does the same thing.
opacity 1 in 0