You could move the `world.LocalPlayer == null` check here to avoid duplication, and `disableTeamChat` would be a more professional variable name.