Actors despawn after respawning a player

Hello,

I created an on rep function in an actor which adds instances to an “hierachical instanced static mesh component”.
The on rep function is called when the actor spawns. The actor gets spawned in the game state.

After starting everything seem to work. The server and the clients can see the same instances at the correct position.

Everything works fine until one client player pawn gets destroyed. After respawning the player pawn and possesing it the instances are shown correct for maybe 2 seconds, after that the instances of the components are invisible for the client. But the server recognices the instances.

After hours I cant figure out where the problem is.

I hope someone can help me.

Thanks

I fixed the problem.

It was related to the network relevancy. I had to check that the actor with the instances is always relevant because I use network revelancy. Otherwise the clients wont update the actor if they are far away.