The Basketball Hall of Famer will guest star on Wednesday's episode of "The Goldbergs."
In the 'Pina Colada Song' episode, Barkley plays a substitute gym teacher named Neelo Greene.
He auditions to replace Coach Rick Mellor, played by Bryan Callen, who announced to his class that he is leaving the school during the state-mandated mile.
Barkley shows off his all-star blocking techniques by rejecting students driving to the lane with a basketball to shoot a layup.
He announces to the students in his first class, "In my gym, we've got two rules. Number one, we never give up. Number two, aliens are real and they walk among us."
"The Goldbergs" is based on Adam F. Goldberg's experiences growing up in a Philadelphia-suburban family in the 1980s.
"Having Sir Charles Barkley on set was a thrill," said Goldberg. "The energy that day was electric. Of all the great guest stars we welcome to our set, there's never been a bigger group of people hanging around just to catch a glimpse. It was extra special knowing that he's not only NBA royalty, but Philadelphia, where the show is set, too. Charles was also amazingly gracious -- taking the time to joke around with the cast and crew, and making sure he didn't leave before every person on that set got a handshake."
Barkley was drafted by the 76ers with the 5th pick of the 1984 NBA draft.
"The Goldbergs" airs on Wednesdays at 8 p.m. on 6abc.
Send a News Tip to Action News
Learn More About 6abc Apps