You sound like a clueless millennial with no real world skills. Let me help you out a bit.
Sometimes things in life don't go exactly as planned. Occasionally a product that you purchase will fail. Often times the product will have what's called a warranty. A warranty is usually a written guarantee by the manufacturer that the product purchased will remain defect free for a given period of time.
Given that you said the tights were recently purchased, I think it's reasonable to assume that they are still under warranty. If that is the case you can contact the product manufacturer for repair, replacement or refund.
Hope that helps!
ps, this is why it is important to wear shorts over tights. No one wants to see your wardrobe malfunction. And if it malfunctions near a school zone, you might get locked up for indecent exposure and charged with a sex crime.