Replication issues with health bar

Hello, so I just wanted to have a classic health bar on the player’s screen but when I’m the server and I die the health bar doesn’t got back to 100 percent. I tried debugging it and basically when it respawns it doesn’t trigger the is locally controlled branch, so I’m not sure what to do.