// Start is called before the first frame update
 private void Start()
 {
     if (myPlayerInfo.characterIndex > 2)
     {
         bar.gameObject.SetActive(false);
     }
     else
     {
         myPlayerInfo.UpdateLifeValue(lifeValueNormalized);
     }
 }
    private void KillPlayer(uint netId)
    {
        //Only go on for the LocalPlayer
        if (!isLocalPlayer)
        {
            return;
        }

        // make the change local on this client
        //Destroy(this.gameObject);
        this.transform.position = new Vector3(5, 0, 0);
        myPlayerInfo.UpdateLifeValue(1f);

        // invoke the change on the Server as you already named the function
        CmdProvideKillPlayer(netId);
    }