Robin Thicke admitted to lying about co-writing his hit summer 2013 song "Blurred Lines" in a Los Angeles federal court yesterday. The singer also admitted to being under the influence of both Vicodin and alcohol when he recorded the song.

Thicke confessed under oath that he exaggerated his participation in the writing and producing of the track.

"I was jealous and I wanted some of the credit," Thicke says in the transcripts. "I tried to take credit for it later because [Pharrell Williams] wrote the whole thing pretty much by himself and I was envious of that."

After the song became a hit, Thicke wanted more involvement credit than he actually put in, so he embellished his role, the singer told the judge. He said this jealousy is what drove him to begin even convincing himself he played a larger role in writing the song.

Thicke also adds that he gave interviews supporting his fabricated story to help sell records, reports Hollywood Reporter.

Although he appears to have very minimal authorship, Williams agreed to allow Thicke to claim 18-22 percent of the publishing royalties, Hollywood Reporter reports.

He justified his actions in court by pointing out this embellished authorship scenario happens often in the industry. Thicke's trial is scheduled to continue on Feb., 10, 2015.