Replicating Player Color

How would I go about replicating the material change to other clients?

How exactly? I know I have to use custom events but I think Im doing it wrong.

Make color variable that replicates and make clients use that variable to set color locally