Do you know if it had an accident? Was it born that way, was it hurt by another animal? Is it swollen, punctured, torn....there are many home remedies for livestock, but I can't tell you what to do, with a description of "bad"...bad means too many things.
This is definatly something that should be taken seriously and your baby goat needs to see a vet asap. You wouldnt just let your child run around with a bad leg, youd rush them to the er, a pet should be treated the same way.
get it checked out by a wildlife vet and see what is rong x