Why isn't my gas pedal working? on 1995 BMW 750iL

my car runs fine but when I press the gas pedal nothing happens.

Asked by for the 1995 BMW 750iL
The gas pedal computer has gone bad. It's called a potentiometer. I was driving down the street, came to a stop sign, stopped and upon hitting the gas, i got nothing, but the engine was still running as normal. First thought was the transmission, but I used the engine power of the car to coast the car home the twenty or so city blocks I was away from home. Cost me around $1300 to repair. Good Luck!