problems changing objects color on client

i am kinda new to networking in unity but in the game i am working on i have a damage thing set up to where the enemies change color as they take damage. i am currently trying to make a multiplayer mode and got a lot of it working but i am having problems getting the object to change colors on the client side. the color change works on the server but thats all.

here is my code

function OnCollisionEnter(collisionInfo: Collision) {
   if (collisionInfo.collider.CompareTag("bp")) {
		networkView.RPC("takedamage", RPCMode.AllBuffered);
   }
}
@RPC
function takedamage() {
     health = health - 1.0;
	  gameObject.renderer.material.color.r = 0.75 + ((1.0-0.75) *((health-1.0)/mhealth));
	  gameObject.renderer.material.color.g = ((health-1.0)/mhealth);
	  gameObject.renderer.material.color.b = ((health-1.0)/mhealth);
}

I don’t think RPCMode.AllBuffered is a good choice. RPCMode.All should be enough.

On which object this code is ?

like i said i am new this code is on the enemy objects. every time they take damage they turn more and more red (or they should) the enemies are all server side but i dont get why it wont work on the clients

EDIT:
here is a video of the single player

Maybe the life value isn’t updated ? Or the function isn’t called ? Do you have a visual feedback to detect the reception of function takedamage ?

well considdering it is a rpc function and the mode is currently all… also the health goes down and stuff so i know at least part of it is working. also it changes on the server just not the clients