Shut it off ASAP and then fix it. Many houses are burnt down from dryer fires where lint catches on fire. If it is still on, then unplug it or throw the breaker. Sometimes the drum can throw or break a belt or a bearing can go bad but your problem sounds electrical.
Also probably cheaper to buy new than to get a repairman to try to fix a 20 year old dryer.