Go into the Script Editor (F11). Go down between Materials and Main and right click an empty slot - choose Insert. Go to the slot you just created and paste the script into it. Name it whatever you want in the lower left field. "Woratana Caterpillar" would be a good name for it, for instance.