Your answer is Foil.
-A FOIL is a character who is used to bring out the feelings and personality of the main character.-
A foil is someone who possesses the opposite traits of the main character, often the protagonist. The purpose of the foil is to serve as a contrast, which can help bring out the main character's best traits.
I hope this helps!