These words give writers trouble since the two can be both a noun and a verb, although affect is typically verb and effect, noun. Normally, you will use affect to denote influence. For example:
If I play music will it affect your studying?
Affect used as a noun means “emotion.”