In the instance of Dylann Roof, the “background check” was badly muffed up by the persons who were supposed to be performing it. He should never have come into possession of the weapons he used, but this was shucked off as “bureaucratic error”.
It’s important to note that any motivated individual (with or without criminal intent) will be able to get a firearm regardless of laws “preventing” access.