First, make sure you are wearing the right size leggings. If they are too tight, they will rub and chafe more. Second, choose a pair of leggings made from a moisture-wicking material. This will help to keep you dry and comfortable. Third, apply a lubricant or anti-chafing cream to your skin before putting on your leggings. This will create a barrier between your skin and the fabric.