PunRPC error

Hi, i am getting this error. I am watching a tutorial video from udemy and i did same things.

When player gets hit it does not take any damage.

Answers

  • I can't see if that other object (hit) also has this script as component.

    Maybe you have to use this object's PhotonView as target for the RPC.