i have a idling problem it will go up and down from 15oo to 2000 and doesnt stop on 1991 Toyota Pickup

i tried replacing the o2 censor and that didnt work. it will also shut off after being run for a long time and when i try to start it it seems like its flooding have any sugjestions?

Asked by for the 1991 Toyota Pickup
maybe you have a vacuum leak
i already had all the hoses checked