Line 3 onplayertouch is out of place, unless you accidentally set it to onplayertouch instead of onvariabletrue.
Switch lines 6 and 7 and change all of your player targets to client targets.
The variable name "AA12bought" is redundant, as your check of either 1 or 0 could allow the variable to be just AA12.