Will Smith celebrated 30 years in showbiz by accepting the Generation Award at the 2016 MTV Movie Awards. The 47-year-old took the stage after a tribute from The Lonely Island (Andy Samberg, Akiva Schaffer and Jorma Taccone), Queen Latifah and Halle Berry.

Samberg, Schaffer and Taccone took it back to the early '90s when they came out in full "Fresh Prince" get-up performing his earlier rap hits, including "Summertime," "Gettin' Jiggy With It" and the theme songs to "The Fresh Prince of Bel-Air" and "Men In Black."

RELATED: 2016 MTV Movie Awards: Chris Evans gives 'Captain America: Civil War' first look

Latifah notes that Smith is the first hip-hop artist to crossover into the mainstream as a television and film icon.

"Show that a person of any color can play any role and win any award," Berry says while introducing Smith.

"When I first heard that MTV wanted to give me the Generation Award, I thought that was like code for 'The Old-Ass Dude Award.' Like hey man, congratulations your best work is behind you, have fun," quips Smith during his acceptance speech.

He then shares that he is now known more for fathering the boy from "Karate Kid," noting that "this [award] came at the right time."

Watch the full musical tribute from The Lonely Island below: