Add a Switch has Authority before you are running any code on your AI. Use the authority to only keep it running on the server.
Sometimes you would want to run some things on the client as well or only on the client. That code can be connected to the remote.