After going a goal behind early on, Horsham equalised through Shamir Fenelon’s excellent finish before James Hammond gave the Hornets the lead from the spot.
Barnsley overturned the deficit to make it 3-2 before Richards tapped home late on to seal a famous cup result.
But who stood out for Horsham? Here are Sam Pole's ratings from the game.
READ MORE: Valiant Hornets hold League One Tykes in six-goal thriller – match report
Horsham boss Dominic Di Paola hails ‘absolutely phenomenal’ Hornets performance as League One Tykes are held in barnstormer
Barnsley head coach Neill Collins hails never-say-die Hornets after pulsating first round clash