Look at the comments in the script. There's a place where you put in how many members in your party, and indicate what variable you want to use for <something> (party member, I think). By default it uses variable 1. If you don't change it, it will use whatever you have in variable 1, which could be what's causing the issue.
Whenever you add a new script, ALWAYS read through it VERY carefully to see what sort of customization you need to make. There are a LOT of requests for help with scripts when the problem is simply that the person hasn't read the instructions and set it up properly. I don't know if that's the case here, but that's the first step.