Floyd Roger Myers Jr., who rose to fame for his role as a young Will Smith on “The Fresh Prince of Bel-Air,” has died.

He was 42.

The actor died of a heart attack at his home in Maryland early Wednesday morning, his mother, Renee Trice, confirmed to TMZ.

Former child actor Floyd Roger Myers Jr. has died. Instagram / @rocwonder

Myers suffered a fatal heart attack. He was 42. Instagram / @rocwonder

Trice, who last spoke to her son Tuesday night, revealed he suffered three heart attacks in the last three years.

The actor’s sister, Tyree Trice, also announced his passing via a GoFundMe page, revealing the fatal heart attack was “unexpected” and “sudden.”

“He was a devoted father, loving brother and friend whose kindness, laughter and warmth touched everyone he met,” Tyree wrote of her older brother.

“Roger leaves behind his four beautiful children — Taelyn, Kinsley, Tyler, and Knox — and our loving family is now facing the unimaginable loss of someone who meant everything to us.”

He rose to fame in 1992 with his role of a young Will Smith in “The Fresh Prince of Bel-Air.” Warner BRos

Myers (bottom left) then scored a role as Marlon Jackson in “The Jacksons: An American Dream.” ABC via Getty Images

Myers first stepped into the limelight with his role as a young Will Smith in “The Fresh Prince of Bel-Air,” per his IMDb page.

He went on to play Marlon Jackson in “The Jacksons: An American Dream,” starring along legendary actors like Angela Bassett, Vanessa Williams and Billy Dee Williams.

His last acting credit was in 2000 when he appeared in “Young Americans,” which ran for only one season.

He stepped back from acting after his last role in 2000. Instagram / @rocwonder

Want more celebrity and pop culture news?

Start your day with Page Six Daily.

Thanks for signing up!

Myers took a step back from acting, going on to co-found “The Fellowship Men’s Group” designed to help support men in their efforts to “lead, heal and thrive.”

The organization took to Instagram on Wednesday to honor Myers after his untimely passing, sharing a photo of him with his four young children.

“RIP to our good brother @rocwonder one of our co founders. Gone but never will be forgotten. The mission will continue in your honor,” read the caption.

“Next mens meeting will be one for the books like we talked about! Love you bro, rest easy, big bro will take it from here.”

Myers is survived by his mother, his sister and four children. Instagram / @rocwonder

In his last Instagram post from September, he celebrated his daughter Tyler’s 10th birthday. rocwonder/Instagram

In his last Instagram post shared in early September, Myers celebrated his daughter Tyler’s birthday.

Sharing a sweet slideshow of baby photos, he wrote, “Happy 10th birthday to my baby girl!! The life of the party and always a bright light in the room!!

“I’m so happy to be your father can’t wait what the next 10yrs will look like watching you grow!! I love you and we going up all weekend baby girl!! Daddy’s TyTy🥰🥰🥰.”