Multiplayer controls

I made this simple code for multiplayer, but it works only for the host and not for the guest, why?