NPC Help

How would I go about making an NPC walk to a position then attack the NPC in front of it? I am trying to make a game like wizards chess for gmod and so far I can’t get them to attack each other.