A ray gun is the classic retro-futuristic sidearm: a chunky pistol shape with a short barrel, often a bulbous or ribbed body, a bulbous energy emitter at the muzzle, and fins or coils along the top. Think 1950s pulp sci-fi rather than a modern firearm.
Designs vary a lot by franchise, from the sleek silvery blasters of Star Wars to the orange, cartoonish ray guns in Call of Duty's zombie mode. If you had a specific game or film in mind, that would narrow the description down considerably.