2d spawn HUD

Hi all,
i want to ask you a little tip.
I saw some tutorial for online multiplayer where they use the game istance or the player controls for to spawn HUD. But in my 2d game when i say to the map blueprint to call the function spawn HUD of the game istance it spawns only in the server… i tried to swap this function in the player controller too but with the same results… Why?