I live pretty far away from anywhere where this might happen but....
Yeah I would be on my roof with a long gun, shotgun, ect. I think I could deter 95% of the rioters and the other dead ones in my yard might scare off the rest.
The would most likely be a painted line on my property and a sign. "cross the line and I'm shooting you"
Cock the Glock and let 'em fly.
Gen 2 Glock 17
Gen 4 Glock 17