I have pain in my right foot, but only when I walk a lot of pain

The . The question is way to vague. Need more information.
Consult.. With an orthopedist or podiatrist. They will be able to fully evaluate your condition and provide a treatment plan.