Ok, first of all, panicking is the worst thing to do, stay calm and we'll get him/her taken care of.
Male or female?
How old is your dragon?
How long have you had your dragon?
Was your dragon a rescue?
Do you use UVB? Please be specific (Coil, compact, flourescant, etc.)
Do you use a heat rock or undertank heater?
Do you give your beardie baths? If so, how often?
What do you feed your dragon?
Have you gotten a fecal done?
What substrate do you use?
How much and often do you feed him?
It sort of sounds to me like parasites, so a fecal is a very good idea. Does his...well...poop, smell bad? If so, he probably has parasites! Has he been eating?