Help me figure out the replication

I have an actor that needs to be attached to a first-person mesh for the owner, and to a third-person mesh for others.
I have attached the code below that I created, but it does not work.

When I use this code, it turns out that
If the owner is the server, then:

  • The server attached the actor to the first person mesh (correct)
  • Two clients attached the actor to the first person mesh
    If the owner is the client, then:
  • The server does not connect to anything at all
  • The client owner connects to the first person mesh (correct)
  • Another client connects to the third person mesh (correct)

I tried to create different events for the client and for the server, it doesn’t help either. I tried using “isServer”, it didn’t help either.
Maybe someone knows how to implement this, thanks a lot in advance!

I added two identical meshes to the actor and set “The owner does not see” for one and tied it to a third-person mesh, for the other I set “Only the owner sees” and tied it to a first-person mesh