UPDATE: Took my car to a local shop and the mechanic said it was the speed sensor. He said that it had broken off inside the transmission and he had to pick the broken parts out.

Car is running fine now.