A former college soccer player in Massachusetts has agreed to plead guilty to sending death threats to dozens of professional and collegiate athletes whom he blamed for his gambling losses.

Addison Choi, 23, of Fullerton, California, was a prolific gambler who posted graphic and sometimes racist threats on the Instagram accounts of athletes he believed caused him to lose money.

The threats occurred between July and December of 2017.

Former college soccer player, Addison Choi (left and right), 23, of California, has agreed to plead guilty to sending death threats to dozens of professional and collegiate athletes whom he blamed for his gambling losses

Choi (circled), who played soccer for Babson College in Wellesley, was a prolific gambler who posted graphic and sometimes racist threats on the Instagram accounts of athletes he believed caused him to lose money

According to CBS, Choi, who played soccer for Babson College in Wellesley, posted on one professional athlete's account on July 27, 2017.

That post read: 'I will kill you and your family and f**king hang them on a tree you stupid ugly motherf***er and also 'I hope you f**king die you stupid monkey n***er'.

In another post Choi reportedly posted on the Instagram account of a professional athlete's girlfriend: 'You stupid motherf**ker, you worthless f**k. I will f**king kill you,' and 'I will f**king kill you dumb f**king b***h… leave that irrelevant stupid motherf**ker'.

According to MassLive, Choi gambled on a range of amateur and professional sports, including baseball, football, basketball, hockey, soccer and tennis.

However, he wasn't that successful and when he lost, he took it out on certain players.

'When Choi thought that a team or player he had bet on was not performing well enough during a game for Choi to win his bet, Choi threatened those players or teams with death,' prosecutors wrote in a court filing.

The details in the federal complaint 'do not represent Addison Choi as a person', his defense attorney Joseph Simons said. Court documents show Choi will plead guilty to making threats to injure people

Choi is accepting responsibility and the details in the federal complain 'do not represent Addison Choi as a person', his defense attorney Joseph Simons said.

Court documents show Choi will plead guilty to making threats to injure people.

He is currently facing a possible sentence of five years in prison, restitution and a fine of $250,000.

A sentencing hearing had not been scheduled as of Thursday afternoon.