How to adapt behavior based on if we are on the client playing with this pawn or one who doesn't

To solve my problem i used the ReplicatedOn UProperty on a AEscapeGameCharacter Holder property. I think it’s working because when using OnRep, the server probably send the updated property to the clients after the end of the frame calculation. Therefore it does work but i’m not sure if it’s actually a good solution.