The only person allowed to talk to a ref is the team Capitan or the head coach. A referee might not notice your good behavior on the court, but they sure as heck will notice your bad behavior. Think about it for a second. If you were a ref, would you think “Wow, this player is really good a complaining and making weird faces at my calls, maybe I should call more fouls in their favor?"
At the end of the day, having the ref on your side could be the difference between winning or losing the game. And if you get a tech for complaining, then you’re letting your team down. If you’re the team Captain always speak to the ref with respect and never yell or call them names. This seems simple now, but in the game never talk to the ref when you lose your cool. You are representing your team and if you are disrespectful to the ref the rest of your team may imitate your actions.
Don't mess with this ref:
And then there is these goof balls: