Fentanyl affects the opioid and dopamine receptors in the brain, producing analgesia and euphoric effects. The drug can also cause hyperexcitation, happiness, and addiction.