Replicating Variables

Hello,
In my multiplayer project, I need that when a player presses a button on the HUD, that button is blocked for other players, but what is happening is that when a player presses the button it is blocked just for him.