This thread is for getting help with your scripting probelms Firstly, I'm going to lay down a few rules:
Please Keep it civil.
Please provide a description of what the script is meant to do, and what it actually does
Please provide the script editor you are using i.e. XSE, PKSV, PokéScript...