# Player name does not correctly replicate to all players

**URL:** <https://forums.unrealengine.com/t/player-name-does-not-correctly-replicate-to-all-players/499540>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, UE4-26, Blueprint, question\
**Created:** [February 18, 2022, 12:51pm UTC](https://forums.unrealengine.com/t/player-name-does-not-correctly-replicate-to-all-players/499540 "2022-02-18T12:51:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guitarleader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guitarleader](https://forums.unrealengine.com/u/Guitarleader)\
**Post date:** [February 18, 2022, 12:51pm UTC](https://forums.unrealengine.com/t/player-name-does-not-correctly-replicate-to-all-players/499540/1 "2022-02-18T12:51:38Z")

</div>

In my game I have a widget above the player’s head to show their name and if there are “Readied Up”. The ready-up system works fine and everything works the way I want and is shown the way I want ON THE SERVER. All the clients have blank widgets above their head.

My current setup has a custom event that runs on the owning client to see what has authority and if it does update the ready-up status then multicast an update names event to all clients. And if they don’t have authority run an update player names on the server, then multicast. But I just cant get it to work. Usually I can wrap my head replication but this one has me stumped.

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [February 20, 2022, 1:36pm UTC](https://forums.unrealengine.com/t/player-name-does-not-correctly-replicate-to-all-players/499540/2 "2022-02-20T13:36:13Z")

</div>

First you need to ensure that the name from the Client gets to the Server which would appear you accomplished so far so ill skip that.

Secondly you need a Replicated Actor spawned by the Server with a OnRep variable callback on each client to update the widget when the variable is eventually replicated.  
This is where the problem begins since you are instead using a Multicast RPC to do the replication which is easily dropped/missed by clients still busy connecting or for whatever reason is not present while the RPC is called.

“Has Authority” or “Switch has Authority” should indeed be used before setting a replicated variable to avoid overriding the local variable by accident. You should however not set the name locally if “Has Authority” is false as it serves no purpose.
