Lin-Manuel Miranda has been getting a lot of buzz for his recent works like "Encanto," but before shooting to fame, the actor had a small role in a popular TV show which got him scared; what happened to him?

According to the New York Post, the Emmy Award-winning actor had a small role on "The Sopranos." Miranda starred on the HBO series almost ten years before creating "Hamilton."

Today, the singer is detailing his experience on the show, especially working with the late James Gandolfini.

The actor was a part of Judd Apatow's book, "Sicker in the Head: More Conversations About Life and Comedy," where he talked about the late actor, saying he was "never locked up in this trailer" as he constantly goes around the set and talks to people.

In 2007, Miranda starred as a bellhop boy in an episode during the show's sixth season. The actor was not that famous at the time, and he's doing his best to secure leading roles.

"I went on lots of voiceover auditions and acting auditions, and the only thing I booked was 'The Sopranos' as a bellboy," he said.

Since he's new in the industry, Miranda said he would always look down on his mark, and he doesn't consider the role a cameo because he wasn't "even in the union yet."

While filming for the small role, which only showed him on screen for a short period of time, the actor said he was "scared s***less," but the late actor helped him.

"My one story about Gandolfini was that he stayed and did his sides even though it was the end of the night. He had no need to do that," he noted.

READ NOW: Bob Saget Real Cause of Death: Actor NOT Feeling Well The Night Before Final Show

Lin-Manuel Miranda Is Not the Only Actor James Gandolfini Helped

James Gandolfini has a kind heart, as Miranda was not the only actor who can attest to his attitude behind the scenes.

It was revealed in the book "Tinderbox: HBO's Ruthless Pursuit of New Frontiers" that the late actor gave his co-stars $33,000 after an HBO contract negotiation.

Steve Schirripa also detailed the late legend's generosity, saying he was one of 16 people who received the money.

Speaking to New York's WFAN radio in 2013, the actor revealed Gandolfini called every one of the show's regular cast members and gave them a check for "sticking" by him.

Per Showbiz Cheat Sheet, the actor passed away in 2013 at the age of 51. He was in Rome with his family, planning to attend Taormina Film Festival, but reports state that he died due to a heart attack.

READ ALSO: Robin Thicke Fiancee Refuses to Sign Prenup, Calls Herself 'The Baddest'