Well show me what script you currently have and the exact message and what the DEBUG shows you.. remember to type /debug @whatever

before executing the script.. and be a little bit more precise on what is happening.