There hasn't been a school shooting in the UK since Dunblane. I don't even think there was one before it either.
Assault rifles were banned in 1987 after the Hungerford massacre and they banned pretty much everything else except licenced hunting firearms in '97 after Dunblane.
Since then there's been 5 mass shootings in the UK, none of which occurred in Scotland.