How to pause game via client?

Hello. I’m making a multiplayer game and having trouble with pausing. When the server press the pause button (runs setGamePaused node), both the client and server pauses but when the client press the pause button (runs setGamePaused node too), the server and the client itself don’t pause. Please help me with this problem.