I tried to do this across numerous races, but could never hit more than one kart at a time.
I went into Battle Mode and plugged in 2 more controllers. I carefully lined up players 2 and 3 next to each other and drove around until I had a pumpkin bomb.
I pulled up right behind them and fired.
Bingo!