can any one help? whats wrong with this script!
desc = Random Melee Attack for use with v117 Dark AI. (male)
;Triggers
:plrhealthless=0:setaiactive=1,setvar=0,state=10,animate=94
;UPRIGHT ANIMS
:ducking=0,strafingleft=1:animationnormal,animate=92
:ducking=0,strafingright=1:animationnormal,animate=92
:ducking=0,movingforwards=1:animationnormal,animate=92
:ducking=0,movingbackwards=1:animationreverse,animate=92
:ducking=0,idle=1:animate=94
;CROUCH ANIMS
:ducking=1,movingforwards=1:animate=32
:ducking=1,movingbackwards=1:animationreverse
:ducking=1,strafingleft=1:animate=32
:ducking=1,movingbackwards=1:animate=32
:ducking=1,idle=1:animate=31
;DETECT TARGET AND IDLE
;//:state=10:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=state10
:state=0,aitargetdistfurther=300001:animate=95
:state=0,aitargetdistwithin=300000:state=5,airotatetotarget
;CHOOSE MELEE ATTACK
:state=5,random=6:state=101
:state=5,random=6:state=205
:state=5,random=6:state=366
:state=5,random=6:state=411
:state=5,random=6:state=12
:state=5,random=6:state=13
;MELEE ATTACK 2 (OVERHEAD SLASH RIGHT)
:state=205,random=10:state=206,aisettarget
:state=206,aitargetdistfurther=70:airotatetotarget,aimovetotarget,aisettarget
:state=206,aicanshoot=0:airotatetotarget
:state=206,aitargetdistwithin=70,aicanshoot=1,rateoffire:airotatetotarget,setaiactive=0,setframe=101,state=202,sound=audiobank\zombie_apocalypse\malemoan3.wav
:state=202:incframe=101,airotatetotarget
:state=202,framebeyond=101 60,aitargetdistwithin=80:aisetmeleedamage=5,aiusemelee=1,state=203
:state=202,frameatend=101:setframe=94,state=10,setaiactive=1,etimerstart
:state=203,frameatend=101:setframe=94,state=10,setaiactive=1,etimerstart
;MELEE ATTACK 3 (SINGLE ARM SLASH)
;//:state=5,random=5:state=366,aisettarget
:state=366,aitargetdistfurther=70:airotatetotarget,aimovetotarget,aisettarget
:state=366,aicanshoot=0:airotatetotarget
:state=366,aitargetdistwithin=70,aicanshoot=1,rateoffire:airotatetotarget,setaiactive=0,setframe=99,state=322,sound=audiobank\zombie_apocalypse\zombie3growl.wav
:state=322:incframe=99,airotatetotarget
:state=322,framebeyond=99 50,aitargetdistwithin=80:aisetmeleedamage=5,aiusemelee=1
:state=322,frameatend=99:setframe=94,state=10,setaiactive=1,etimerstart
:state=333,frameatend=99:setframe=94,state=10,setaiactive=1,etimerstart
;MELEE ATTACK 1 (DOUBLE ARM SLASH)
;//:state=5,random=20:state=101,aisettarget
:state=101,aitargetdistfurther=70:aimovetotarget,aisettarget
:state=101,aicanshoot=0:airotatetotarget
:state=101,aitargetdistwithin=70,aicanshoot=1,rateoffire:airotatetotarget,setaiactive=0,setframe=98,state=107,sound=audiobank\zombie_apocalypse\zombie3growl.wav
:state=107:incframe=98,airotatetotarget
:state=107,framebeyond=98 40,aitargetdistwithin=80:aisetmeleedamage=5,aiusemelee=1,state=108
:state=107,frameatend=98:setframe=94,state=10,setaiactive=1,etimerstart
:state=108,framebeyond=98 60,aitargetdistwithin=80:aisetmeleedamage=2,aiusemelee=1,state=109,sound=audiobank\zombie_apocalypse\zombie1intro.wav
:state=108,frameatend=98:setframe=94,state=10,setaiactive=1,etimerstart
:state=109,frameatend=98:setframe=94,state=10,setaiactive=1,etimerstart
;MELEE ATTACK 4 (OVERHEAD SLASH LEFT)
:state=5:state=411,airotatetotarget
:state=411,aitargetdistfurther=70:airotatetotarget,aimovetotarget
:state=411,aicanshoot=0:airotatetotarget
:state=411,aitargetdistwithin=70,aicanshoot=1,rateoffire:airotatetotarget,setaiactive=0,setframe=100,state=477,sound=audiobank\zombie_apocalypse\malemoan3.wav
:state=477:incframe=100,airotatetotarget
:state=477,framebeyond=100 60,aitargetdistwithin=80:aisetmeleedamage=5,aiusemelee=1
:state=477,frameatend=100:setframe=94,state=5,setaiactive=1,etimerstart
:state=488,frameatend=100:setframe=94,state=5,setaiactive=1,etimerstart
;RAGE ANIMATION 1
:state=12,aitargetdistfurther=60:airotatetotarget,runfore=10,animate=93
:state=12,aitargetdistwithin=60:rotatetoplr,setframe=102,state=78
:state=78,framebeyond=102 40,aitargetdistwithin=160:sound=audiobank\zombie_apocalypse\malemoan2.wav,state=89
:state=78:incframe=102,airotatetotarget
:state=78,frameatend=102:state=5
:state=89:incframe=102
:state=89,frameatend=102:state=5
;RAGE ANIMATION 2
:state=13,aitargetdistfurther=60:airotatetotarget,runfore=10,animate=93
:state=13,aitargetdistwithin=60:airotatetotarget,setframe=103,state=79
:state=79,framebeyond=103 40,aitargetdistwithin=160:sound=audiobank\zombie_apocalypse\malemoan1.wav,state=90
:state=79:incframe=103,airotatetotarget
:state=79,frameatend=103:state=5
:state=90:incframe=103
:state=90,frameatend=103:state=5
;//start flinch snippet--------------------------------------------------------------------------------------------------------------
;//:state=555:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=state555
;//:state=578:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=state578
;//:state=579:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=state579
::localvar=1
:state=0:setvar=0
:varequal=0,shotdamage=1:aisettarget,airotatetotarget,freeze,setvar=1,state=555,bloodsplash=50
:state=555,random=6:freeze,setaiactive=0,setframe=102,state=578,sound=audiobank\zombie_apocalypse\malemoan2.wav
:state=578:freeze,incframe=102
:state=578,frameatend=102:setframe=94,state=5,setaiactive=1,setvar=0,etimerstart,aisettarget,airotatetotarget
:state=555:freeze,setaiactive=0,setframe=103,state=579,sound=audiobank\zombie_apocalypse\malemoan1.wav
:state=579:freeze,incframe=103
:state=579,frameatend=103:setframe=94,state=5,setaiactive=1,setvar=0,etimerstart,aisettarget,airotatetotarget
;//end flinch snippet--------------------------------------------------------------------------------------------------------------
;//start
:state=0:floorlogic,setaiactive=1,alwaysactive=1,activate=0
;//End