One of R. Kelly’s accusers testified on Wednesday that he kept a gun by his side while he berated her as a prelude to forcing her to give him oral sex in a Los Angeles music studio.

"He had a weapon, so I wasn’t going to step out of line," the witness said while recounting the 2018 episode at the R&B singer's New York City sex-trafficking trial.

When she spotted the gun, a stern-sounding Kelly told her not to look at it, she said, before demanding to know, "How many men have you seen naked?" He also instructed her to act "excited like a puppy" whenever she saw him, adding, "I still have a lot to teach you."

She testified the last time she saw Kelly at a New York City hotel suite, she resisted having sex with him. She said he responded by warning her not to defy him, saying, "I'm a f—-ing legend."

MAN TESTIFIES AGAINST R. KELLY IN SEX TRAFFICKING TRIAL, CLAIMS SINGER EXPLOITED HIM AS A TEEN

In this courtroom artist's sketch made from a video screen monitor of a Brooklyn courtroom, defendant R. Kelly, left, listens during the opening day of his trial, Wednesday, Aug. 18, 2021 in New York.

In this courtroom artist's sketch made from a video screen monitor of a Brooklyn courtroom, defendant R. Kelly, left, listens during the opening day of his trial, Wednesday, Aug. 18, 2021 in New York. ((AP Photo/Elizabeth Williams)

Kelly’s alleged intimidation tactics were all part of an abusive sexual relationship that started when the woman was 19 and resulted in her getting herpes from him, she said. After she filed police reports and sued him for failing to disclose an STD, he and his supporters threatened that they would release nude photos and other compromising material about her if she persisted with her allegations, she said.

The woman testified while only using her first name to protect her privacy.

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

Kelly, 54, has repeatedly denied accusations that he preyed on victims during a 30-year career. His lawyers have portrayed his accusers as groupies who are lying about their relationships with him.

Jurors so far have heard from a steady stream of accusers claiming Kelly began sexually degrading them when they were still in their teens. They said he used his stardom to lure them into an insular world where he watched their every move and doled out perverse punishments, spanking them and isolating them in hotel rooms if they broke a vow to never speak about him to anyone else.

Kelly’s personal physician has also testified, saying he treated him for herpes for several years.

CLICK HERE TO GET THE FOX NEWS APP

The trial is unfolding under coronavirus precautions restricting the press and the public to overflow courtrooms with video feeds. That’s made it difficult to discern the reactions of Kelly, who has been jailed since his federal indictment was announced in 2019.