Cotroll player prefabs by UI

Hello everyone
Currently I have 1 button and I want to control my character (player prefab) through this button
When there is only 1 client connected, it works normally.
When more than one client connects, only the last connected client is active

MonoBehaviour

ShootButton.onClick.AddListener(() =>
{
     PlayerShoot.instance.Shoot();
});

And
NetworkBehaviour

 public void Shoot()
{
     if (!IsOwner)
     {
         return;
     }
     //Only last connected client work
     Debug.Log("Shoot");
}