Give me one word that describes this sentence:

A person who acts the opposite of what they feel to gain attention.

Hypocrite

--------------------------------------------------------------------------------
One who plays a part; especially, one who, for the purpose of winning approbation of favor, puts on a fair outside seeming; one who feigns to be other and better than he is; a false pretender to virtue or piety; one who simulates virtue or piety.

This is what I would say, there maybe another word for it. Good luck

The one word that describes the sentence "A person who acts the opposite of what they feel to gain attention" is "hypocrite."

A hypocrite is a person who pretends to have qualities, beliefs, or feelings that they do not actually possess. They often act in a way that contradicts their true emotions in order to gain attention or to appear more virtuous or pious than they actually are.