The only realistic solution is machine-gun toting robots.
Boston Dynamics’ Spot would actually be pretty great, again with no autonomous capability.
I mean, the other interpretation is that school shooters use these robots to shoot the school up.
A script kiddie and a shooter maybe.