If one’s parents are non-muslim, for eg Buddhists, can one do something for eg dig a well, and have the thawab given to the non-muslim parents? Will this act help them in any way? Or is it better to do it for Muslims instead (eg friends)

If they are monotheists and believe in God, then a person can ask God to forgive his parents. If they are idol worshippers no.