Complex sentence: She believes everyone has a function in the group that they are good at which makes her come to the realization that she is good at parties and having fun.
Split into simpler sentences: She believes everyone in the group has a function, something that they're good at. It's because of this she comes to the realization that she's good at parties and having fun.