My player invisble to other players but i can still see other players

Hello Unity3D.I have a question to ask about the invisibility physics?How can i make it that when my player goes invisible the other players cant see me but i can still see their players?For example.If i use a cloaking device,I’m invisible,my character is translucent and the other players can’t see me.But,I can still see my player and when the cloaking device wears off the other players can now see me once again.If anyone knows how to make my player invisible to other players and allow me to see the player that has the cloaking device when it on.Can you please tell me how?Thank you!

gameObject.transform.renderer.material.color = Color.clear;

must be using a transparent shader