The match between Bangkok Sports Club and Satri Angthong had gone to a shootout after normal time ended 2-2 on Saturday afternoon.
The cup game was in the sudden death stage and tied at 19-19 when the last man - the goalkeeper - stepped up to take a spot kick for Bangkok Sports.
He hit the crossbar which sent the opposition goalkeeper running away and jumping in celebration, while the penalty taker held his head in despair.
But the ball flew into the air and when it landed the backspin caused it to slowly bounce back into an empty goal as keeper frantically ran back to try to save it.
Watch:
Watch: