Calling Client RPC in order to assign a Team value to clients. How to check the Role properly?

The ‘OnRep’ variable is what I have been missing I think. Going to learn more about it now. Thanks for your time in helping me.