Methamphetamines can affect serotonin function by increasing its release and blocking its reuptake, leading to an excessive amount of serotonin in the brain. This can cause various physical and psychological effects, including increased heart rate, high blood pressure, and anxiety.