my car idles rough in all gears, even in park. Wont rev up or build up speed on 1996 Hyundai Accent

Just started doing this the last few days all of a sudden. What could cause this

Asked by for the 1996 Hyundai Accent
Sounds like a transmission problem. Check trans oil.