The Ray Gun is a premium decoration that was available during the Treehouse of Horror XXIII Event, Treehouse of Horror XXIV Event, and Treehouse of Horror XXV Event. Upon building it, the player can crash Kang (or Kodos') spaceship, which creates the Crashed UFO, which unlocks the new alien character. As of the Treehouse of Horror XXIV Event when the UFO crashes into the ray gun, Professor Frink provides you with a new one.
The Ray Gun was re-released for the Treehouse of Horror XXV Event. To unlock the Ray Gun for purchase, players had to first complete the Restricted Air Space quest. Upon purchasing and placing the Ray Gun, players could shoot Kodos down from the sky (as with the previous Halloween event), creating Kodos' Crashed UFO. The new Ray Gun that Professor Frink provides to players would produce one Ammo every eight hours.
- Tapping on the Ray Gun fires a purple beam into the air.