The Ray Gun is a gun Magic Item made with Dollamancy out of the Royal scepter of Jetstone. Ace Hardware created it with a trigger word, "Pew", meant to be said when using the item. It's very similar to prince Ossomer's Bracer Blaster.
As a magical attack, its shots can be absorbed by the Staff of Suckage. Though the staff got destroyed in the process.
Real World References
Rayguns are a common staple of science fiction.