Car revs up and down while idling

Sounds more like a vacuum leak or an engine sensor going bad. This doesn’t sound like a transmission problem at all.