Putting a script into a gani

Can somebody please provide me with some sort of example? I’m sorry for being a newb about this, but I can’t seem to get it.

Here’s what I mean. I know how to make a script, I’m not that stupid, I just don’t know how to add it to the gani. I’ve been looking in the gani section, and I can’t find out how to make the script apply to the image in the gani! I just need to add an alpha of 0.8 to the script x____x like this

SCRIPT if (created || playerenters) { coloreffect 21,0,0,0,0.5; //21 Is the sprites index so I hope I'm correct with the scripts color effect } SCRIPTEND

I can’t find out how to make that apply to the sprite!
I looked at these posts, but still couldn’t figure it out.

https://graal.in/t/character-idle-and-walk-gani/10262

http://forums.graal.in/forums/showthread.php?t=1475

https://graal.in/t/mirrors-downloads/9723

The attachments below are the Gani I made, and the images I have. Hopefully someone can provide me with a nice explanation that even a newb like me could understand.