How to destroy a spawned actor on Clients

Currently i am working a Boss AI for a game I’m working on and he spawn a mortar. the player can damage the mortar and once its health reaches zero it should destroy itself. Now the function does happen and the mortar is destroyed on the server only. i have tried everything to try and have it destroy itself but nothing works. i would also like to note that it only does not destroy itself when spawned in by the AI, if placed into the level it destroys itself across both server and clients.

Check if mortar actor is replicated and its always relevant.

The mortar is already set to replicated by i checked always relevant and the mortar is still not destroying itself on clients.

So i found that the function on my AI Actor should be replicated to server only and then the spawned actor will destroy itself then.