How did you implement the script? I.e. Can you copy/paste the line the error (where you called the script) is from?