It's probably trying to special attack with a weapon you cant special attack with. Make sure you disable special attack in the gui before starting the script if your weapon doesnt have a spec.
Also, I shouldnt have to do anything to make it mirror compatible, it should already work on the mirror client as the API for both is the shared. If you havent configured something wrong in the GUI, then it's probably an error with the mirror client itself.