Hi. I'm using this script: http://pastebin.com/ef084qjG by Vlue, and it all works perfectly except one thing, I get this error at the end of a battle:
here's the line:
I'm not sure why it does this, I've even tried moving the script over and under other scripts but I still get the error. Any help appreciated, here're the scripts I'm using if this helps: 


here's the line:
I'm not sure why it does this, I've even tried moving the script over and under other scripts but I still get the error. Any help appreciated, here're the scripts I'm using if this helps: 

