How to set visibility of a BP's component in a multiplayer?

You should make it run on server by using a custom event. So create a custom event and then in the top right click Run On Server, you don’t need to make it reliable as its not gameplay essential.

110025-particlereplication2.png

There is more detailed info on Remote Procedure Calls here -