Help with AI perception multiplayer Unreal Engine 5

Hello, I have a question. Is there a way to replicate the AI perception so that it can work for both server and client? I’m using one in my project, and I’ve made it follow the target it observes, but it only follows the server and not the client. How could I solve this? I would appreciate it