Like any other actor, Andy Samberg has had his ups and downs during his career. Some roles brought him great fame, like Brooklyn Nine-Nine, while others were not so great (Grown Ups 2). Over time, fans have grown to love Samberg for his quirky personality and extreme comedic sense.

RELATED: Brooklyn Nine-Nine: 10 Best Friendships On The Series, Ranked

Ranging from extreme R-rated films like Popstar, Never Stop Never Stopping and funny children comedy like Cloudy with a Chance of Meatballs, Samberg's diversity in roles has seen the actor face huge box office success and box office flops. Now, all the successes and failures of an actor mold them into the person they are today. Keeping that in mind, let's countdown and rank Andy Samberg's 10 best roles in film, according to Rottentomatoes.com.

Celeste and Jesse Forever - 71%

Rashida Jones and Andy Samberg having a conversation in Celeste and Jesse Forever

In this 2012 R-rated serious film about high school sweethearts in a struggling marriage, Samberg gives a great performance as Jesse alongside Rashida Jones as Celeste. This movie helped show Samberg is perfectly capable of roles outside the comedic genre, signifying his range as an actor.

This film made enough buzz at the box office to earn a 71% rating at Rotten Tomatoes, one of Samberg's greatest achievements in his career until now. A perfect blend of comedy and seriousness makes Celeste and Jesse Forever a must-watch on the list.

Cloudy with a Chance Of Meatballs 2 - 71%

Cloudy With a Chance of Meatballs 2

This beloved animated comedy stars Samberg in a fan-favorite role of Baby Brent, arguably the funniest character in the movie. Samberg reprises his role as the childish Brent, who at first is the arch-nemesis of Flint Lockwood before they resolve their differences and fight for a common cause to develop a healthy and stable friendship to save the world from an incoming food storm.

This movie also stars his Brooklyn Nine-Nine co-star, Terry Crews, as a muscular policeman. As people of all sorts work together to save the world, they are manipulated by a mogul idolized by Flint.

Popstar: Never Stop Never Stopping - 78%

Andy Samberg onstage in Popstar: Never Stop Never Stopping

This R-rated movie follows a rapper, Conner4Real, played by Samberg who hits a roadblock after one of his albums flops. Popstar: Never Stop Never Stopping focuses on the struggles and emotional baggage that comes with the successes of a pop star, earning a Rotten Tomatoes score of 78%.

RELATED: Brooklyn Nine-Nine: Every Main Character, Ranked By Intelligence

This movie, presented by the three-man group, The Lonely Island, perfectly describes the problems that come with success, and how a life of glamour isn't really all that glamorous at all. The musical mockumentary is funny, has memorable songs, and boasts a dedicated performance by Samberg.

Brigsby Bear - 82%

Samberg stars as Eric in the 2017 movie alongside his former Saturday Night Live co-stars, Beck Bennet, Kyle Mooney, and big names like Mark Hamil from Star Wars. A man distraught about his favorite show ending goes on to explore life and the real world, something he knows nothing about.

Samberg has a more secondary role in Brigsby Bear, with the movie gaining a solid score of 82% on Rotten Tomatoes. A sad sudden realization of the truth forces James (Kyle Mooney) to get out into the real world and face the ever-carrying stress, emotional baggage, and problems associated with real-life. This experience molds him into someone he never expected to become while watching Brigsby Bear just some time ago.

I love you, Man - 83%

I Love You Man Jason Segel Paul Rudd scooter

Again starring Rashida Jones in an R-rated movie, Samberg delivers a masterful performance as Robbie Klaven, alongside Paul Rudd and Jason Segel. This comedy-drama earned an 83% score because of its excellent execution, making I Love You, Man a must-watch for anyone looking for a more mature comedy.

Focusing on male friendship, I Love You, Man is heartfelt, endearing, and stacked with solid performances by a cast that knows a thing or two about comedy.

Cloudy With A Chance Of Meatballs - 86%

It rains food in Cloudy with a Chance of Meatballs

Cloudy With A Chance Of Meatballs stars Samberg in his first go-around as Baby Brent, a bully turned into the best friend of the kid he used to threaten. A quirky, stupidly funny yet childish performance by Samberg brings out the best in the character, suggesting there could not have been a more perfect man for the role.

RELATED: Brooklyn Nine-Nine: The Worst Thing Each Character Has Done

Also starring Bill Hader as Flint Lockwood, Anna Farris as Sam Sparks, and James Caan as Tim Lockwood, this movie does not fail to deliver a few laughs every now and then.

7 Days in Hell - 86%

Kit Harington and Andy Samberg in 7 Days of Hell

A mockumentary about a famous tennis match between Aaron Williams and Charles Poole, this HBO film stars Samberg and Game of Thrones' Kit Harrington. Samberg delivers a masterful performance as the trouble-making Aaron Williams against Kit's Poole. 7 Days in Hell is a must-watch for all tennis fans around the world.

The mature content in the documentary is essential for providing a deep message for pride in the documentary. Known as the "Bad Boy of Tennis," Aaron Williams strays far away from what was originally intended to be a simple match. The match is postponed and Williams faces an influx of problems, which he deals with in his own ways.

Tour De Pharmacy - 89%

tour de pharmacy Cropped

Another HBO mockumentary, only this time about cyclists set in 1982. Tour de Pharmacy focuses on this dark and fictitious time in the industry, with Samberg delivering another enjoyable performance, along with serving as the executive producer of the film.

This mockumentary captures the darkness and essence of a dark subject matter and incorporates it into the film in a rather hilarious manner. Again containing mature content, this movie is not to be watched by people under 18 years of age.

The Lonely Island Presents: The Unauthorized Bash Brothers Experience - 100%

Finally, Samberg hits the 100% mark with honoring notorious baseball players in a rap album set in the 1980s. Starring alongside his Lonely Island members and people like Sterling K. Brown and Jenny Slate, Samberg dominates the screen on this 30-minute Netflix movie.

A Rolling Stone critic described it as "The Lonely Island reminds us that, in 2019, grandiose pop star introspect is such an easy indulgence pretty much anyone can cop to it, even these two bozos." A variety of excellent reviews and great performances make this the second-best role Andy Samberg has ever done, according to Rotten Tomatoes.

Micheal Bolton's Big, Sexy Valentines' Day Special - 100%

According to Rotten Tomatoes, Samberg's best role comes in Micheal Bolton's Big, Sexy Valentines' Day Special. A Netflix film about Santa telling Bolton that 75,000 new babies are needed by Christmas, prompting the latter to persuade everyone to make love.

Co-directed by Lonely island member, Akiva Schaffer, Samberg stars alongside Maya Rudolph and Michael Sheen. As a reviewer describes it, "Michael Bolton's Big, Sexy Valentine's Day Special is proof positive that this kind of tongue-in-cheek homage is sometimes worth it. Today's titans of pop culture do well by the inspirations of their youth."

NEXT: Sandra Oh: 10 Best Roles, Ranked According To Rotten Tomatoes