Problems with seemingly ok script

-snip-
Problem solved thanks to NullPoint and Nevec
Can a mod close this thread?
Thanks

[lua] if self.ShouldAttack = true then[/lua]
should be
[lua] if self.ShouldAttack == true then[/lua]

because you are checking for equality not assigning values to variables.

[editline]07:19PM[/editline]

You have also done that on many other occasions.

[lua]if self.ShouldAttack = true then[/lua]

Should be ‘==’, not ‘=’.

Remember: = is for assignment, == is for comparison.

Ah, thanks.
/facepalms
I’m an idiot

[editline]07:21PM[/editline]

I’ll remember that.
Thanks too