To survive the Shrink Ray Gun, keep hiding behind objects and avoid open areas until you can escape or counterattack.