It’s the access to guns that’s the biggest problem. The US government can’t control what people do with guns, but they can help by restricting accessyes and there are 100's of millions of guns out there. Heck places like Switzerland have huge numbers on gun owners.
The problem is not the weapon. Never has been nor will it ever be. A gun cannot wander around shooting people.
That is the point a person does all that.
A person fails the test not the pencil.