Matthew Perry made the writers of 'Friends' change a controversial cheating storyline.

Matthew Perry's character Chandler was supposed to cheat on Monica - played by Courteney Cox - in Friends

Matthew Perry's character Chandler was supposed to cheat on Monica - played by Courteney Cox - in Friends

The actor - who died last month aged 54 - played Chandler Bing in the hit sitcom with Courteney Cox as his girlfriend/wife Monica and it's now been revealed the pair were supposed to be caught up in a scandal with Perry's character cheating on her during a trip to Las Vegas in a 1999 episode titled 'The One in Vegas: Part 1'.

The revelation was made by actress Lisa Cash, who was hired to play a hotel worker who brings room service to Chandler's room after he has a huge fight with Monica. She told TMZ.com: "The scene was Chandler and Monica were arguing In Vegas about Monica having lunch with [ex-boyfriend] Richard and in our script, Chandler goes up to the hotel room and orders room service and I bring it up as a hotel worker..

"And we end up talking and laughing and connecting and Chandler ends up cheating on Monica with my character."

However, Perry didn't feel comfortable with the storyline and he went to the writers and asked for it to be changed.

Lisa added: "We had rehearsed it ... and the day before we were supposed to shoot it in front of a live audience, I was told that [Perry] went to the writers and said the fans will never forgive [Chandler] for cheating on Monica. He was probably right. That would have possibly changed the course of the show."

The cheating scenes were removed from the script and Lisa's part was cut. However, she was given the chance to appear in a different scene as a flight attendant with Ross and Rachel - played by David Schwimmer and Jennifer Aniston.

Lisa added: "They were so nice for not completely cutting me out of the episode ."

She also praised Perry for making her feel welcome and comfortable on set and insisted the writers made the correct decision by removing Chandler's cheating scene.

Lisa said: "They had that whole other thing with the Ross and Rachel 'we were on a break' but Chandler and Monica weren't on a break. It was a decision that he was going to make to cheat on her. In the moment ... but I don't think the audience would have really forgiven that. So I think it was smart."