Opioids like oxycodone are painkillers. They work by attaching to our body’s opioid receptors, which are responsible for regulating pain, sleep, relaxation, and even mood. When oxycodone is taken, opioid receptors stop electric pulses from traveling through the nerve cells, thereby removing uncomfortable responses to stimuli like pain.