Get ready to say good-bye to "Glee."

The ground-breaking musical comedy will end its run after next season, says co-creator Ryan Murphy.

At a Paley Center event Wednesday night, Murphy confirmed that Season 6 will be the final one for "Glee." He also revealed that Cory Monteith's death has forced him to come up with a completely different ending for the show.

"The final year of the show, which will be next year, was designed around Rachel and Cory/Finn's story," he told reporters. "I always knew that. I always knew how it would end. I knew what the last shot was. He was in it. I knew what the last line was, she said to him.

"So when a tragedy like that happens, you have to sort of pause and figure out what you want to do. So we're figuring that out now."

Lea Michele and Chris Colfer in an episode of "Glee," which will end its run after the 2014 season.
Lea Michele and Chris Colfer in an episode of "Glee," which will end its run after the 2014 season. (Eddy Chen/FOX)

Murphy said he does have a general idea of how he would now like the show to end.

"I'm going to tell the studio and the network (in a week) how, after Cory's unfortunate passing, we can end the show that I think it very satisfactory and kind of in his honor, which I love."

Contact Chuck Barney at Facebook.com/BayAreaNewsGroup.ChuckBarney, or Twitter.com/chuckbarney