What does a notary do?
user
A notary has various official duties.  It sounds like you’re asking specifically about the role of a notary in a will, which is to certify that a person is a competent testator and to attest that the signature on the will is their signature.  The person that is making the will should write their own name in their own handwriting, the notary should then sign the document.
assistant
What else do they do?
user
In addition to the notary role, a notary also offers legal services.  They can notarize documents and also will be responsible for witnessing legal documents, which is essentially signing their name next to the names of the other people who are signing the document, so they can verify that they are the people who signed the document.  This is a relatively recent thing, historically a notary would verify documents by only stamping their seal on the document.  Today a notary will typically verify documents either by signing them themselves or by having the document stamped.
assistant
Do you have to go to school for that?
user
Notaries public are actually required by law to have a certain number of hours of education, which they receive by way of a law school education, or by taking an exam.  In the US, notaries are typically state-licensed, but it’s not required to have a state license.
assistant
What does a notary do?
user
A notary has various official duties.  It sounds like you’re asking specifically about the role of a notary in a will, which is to certify that a person is a competent testator and to attest that the signature on the will is their signature.  The person that is making the will should write their own name in their own handwriting, the notary should then sign the document.
assistant
What else do they do?
user
In addition to the notary role, a notary also offers legal services.  They can notarize documents and also will be responsible for witnessing legal documents, which is essentially signing their name next to the names of the other people who are signing the document, so they can verify that they are the people who signed the document.  This is a relatively recent thing, historically a notary would verify documents by only stamping their seal on the document.  Today a notary will typically verify documents either by signing them themselves or by having the document stamped.
assistant
Do you have to go to school for that?
user
Notary publics have traditionally had to attend a three month course and pass an exam to be certified as a notary public, but as of January 2014 this has changed in many states.  Now there is no minimum requirement, but states are still strongly encouraged to maintain requirements.  For more information about the history of notary publics, you can look up the history of the certification exams.
assistant
What does a notary do?