Network.Instantiate Problem. AI not behaving the same on all clients.

So I network.instantiate a prefab of an enemy with AI.

The AI reacts differently on both computers I am testing it on only attacking the player who’s client it is.
I am adding a network.Destroy to get rid of the monsters when either player kills one.

So my question is: Should I make an array in the AI to detect all players on the field and only attack the closest one?
or is this another problem which involves the network tracking movement?

Well, if your code only checks against the local player, then your ai is only going to attack the local player. If you want it to attack the closest player, then yes, you should write a quick snippet to locate the closest player before going after them.