That there are no shootings in schools does not mean that it is thanks to the fact that it is not legal to have a gun. There is no proven cause-effect relationship.
There are armed people in the UK, even if it is illegal, and the honest people cannot defend themselves. There are knife killings, by radical Muslims. And women cannot defend themselves against rapists.