How do I sync or show other players UI like Name and Health above head

Options

Basically I've been struggling making player UI but the problem is the Canvas was parented inside the Player Prefab this causing me when i turn to right the canvas was doin it too and the letters is now facing to right but what i tried is todo if player facing to right then change the scale of canvas to -1 now if player facing to left the scale of the canvas will be 1 or if i am wrong then vice versa.

The example code i did
userdisplayname.transform.localScale = new Vector(1, 1 ,1) vice versa this if i face to right but this wont show in other players

Answers