I am having issues with my throttle, i think?

I have an 08 hyundai santa fe 2.7L i have changed the TPS twice and it still didn t help it not throttling properly, now when i put it in drive or reverse the accelerator pedal does not work. I can push it down when in park and it revs up though. Can anyone give me some advice? I cant afford shop fees at the moment but also cant afford to try every possible part.
Answers

thebax2006

You already wasted money replacing the TPS twice. Quit wasting the money you need to spend getting the problem diagnosed correctly.

Anonymous

If the car is revving in park, the car does not have throttle issues. Check for trouble codes with a scan tool. Check live data when the car is in Drive. Sounds like a bad transmission range sensor or speed sensor or a bad TCM if there is a separate one. Check the fuses to anything related to the transmission.