If you want to get a better grade on a group project, find a common enemy.

Studies show that when you’re working on a group project, negative feelings about someone or something outside the group – like hatred of the teacher– brings the group together and leads to better work.

However, negative feelings about something inside the group- like one person not doing their job- can tear it apart.

(Source, Source 2)