I need to replicate a int in multiplayer. Not working

Hi, im triying to replicate the quantity of coins the main player have. but when the client player get the coin is not working on the server. I tried with repnotify with other int set by the player coin int but nothing seems to work.
What im doing wrong?

I solved the problem myself. For those having the same problem the mistake was here:

I was conecting the object node of the cast to the other actor output of the trigger. I changed it to get player pawn and now it works.