Assuming you're using the 5E by Roll20 sheet, you can add a hidden link in any attack's description. To do so, open up the attack entry on a player's sheet, and in the description section add the following line (for this example I named my table Crit) [Crit](!
/r 1t[Crit]) So if a crit was rolled you'd then click on the word Crit in the attack's description in the chat window, and it will roll on the listed table. In order to link an automatic roll to a critical hit, you'd either need API to access the sheet's coding, or you'd need to do a whole lot of work to make 3 ability entries for each attack: one attack roll, one normal damage, and one crit damage.