Hitting..

My 12 month old almost 13 month old hits and scratches my husband and I in the face. We’ve told her no and tried a few things, but nothing works. Any advice? :/ I hate that she’s doing this.