Thanks, it's working nicely, a few problems though;
Stops working after the first time it skips to a real player, +attack no longer works. Can't change spectators at all because of this.
Also not sure if this would work changing spectators backwards but that might be something I can fix.