Actors Akiva Schaffer, Andy Samberg and Jorma Taccone of The Lonely Island perform onstage during the 2016 MTV Movie Awards at Warner Bros. Studios on April 9, 2016 in Burbank, California.
Actors Akiva Schaffer, Andy Samberg and Jorma Taccone of The Lonely Island perform onstage during the 2016 MTV Movie Awards at Warner Bros. Studios on April 9, 2016 in Burbank, California.  Kevork Djansezian/Getty Images

Watch The Lonely Island's Tribute to Will Smith at the MTV Movie Awards

Before Will Smith accepted his Generation Award at this weekend’s MTV Movie Awards, the actor and viewers were treated to a musical tribute in his honor from The Lonely Island.

The trio of Andy Samberg, Akiva Schaffer, and Jorma Taccone, who will be seen on screen in the upcoming Popstar: Never Stop Never Stopping, performed a medley of Smith’s most memorable hits, including “Parents Just Don’t Understand,” “Summertime,” “Men in Black,” and “Gettin’ Jiggy Wit It.”

via GIPHY

via GIPHY

Queen Latifah and Halle Berry were also on hand to celebrate Smith at the Movie Awards ceremony. Accepting the Generation Award, the actor joked that he thought it was code for “old-ass dude award.”

He also used his speech to reflect on his three-decade-long career. “I released my first record when I was 17. This June marks 30 years in this business for me. I really want to say I’m humbled, and I just want all of you to know I’m dedicated to being a light in this world. There’s a lot of suffering – a lot of people are suffering in this world. When you see my material, and when I present myself in public, and what I’m trying to build with my family and friends, I just want all of you to know I’m dedicated until I die to light and to love. So thank you all.”

Head here to see the full list of winners from the MTV Movie Awards, and watch the full Lonely Island performance below.

Get More:
2016 MTV Movie Awards, Latest Movie News, The Lonely Island Bring Back Some Of Will Smith's Best Hits (Live from 2016 Movie Awards)

This article originally appeared on EW.com

TIME may receive compensation for some links to products and services on this website. Offers may be subject to change without notice.