I managed to work it out. I had a caps lock protection script which looks at all text therefore it got to that section of the script and as !cookies would match on :TEXT:* that meant it would run that code then stop. I moved the caps lock protection to the bottom, edited the raffle code a bit and it worked perfectly! Thanks for your help.