Muscle spasms usually affect the leg muscles. For about 40% of people, they are an early symptom of multiple sclerosis (MS). In progressive MS, muscle spasms affect about six in 10 people. You might feel mild stiffness or strong, painful muscle spasms.