Courteney Cox shared a hilarious video on Instagram on Wednesday, in which she could be seen scolding co-star Melissa Barrera from her upcoming movie, "Scream" to get her "Friends" apartment back.

The 57-year-old actress, who played Monica Geller on the popular sitcom, seemed very protective of the famous New York apartment as Barrera tried to enter the building.

In the video, Barrera could be seen crossing the street at 90 Bedford St (which is a Tourist attraction in the city) at night time and Cox calls her from across the street, "Melissa! How are you? Where are you going?"

Barrera pointed to the apartment where Monica's character used to stay with Rachel Green - a character played by actress Jennifer Aniston - and replied, "I’m just going home." Cox immediately gets possessive about the apartment and explained Barrera why this is off-limits.

"That’s weird … I don’t think that’s your home," Cox told Barrera. "I’m happy you joined the ‘Scream’ cast, but this is not OK. This is off-limits."

Cox went on to scold the 31-year-old actress by referring to her recently released movie, "In The Heights" and suggested to her, "Go back to the Heights."

Barrera gave a hilarious response and said, "I know," which used to be Monica's catchphrase on the sitcom.

"Friends" has often been described as a generation-defining sitcom by adrent fans, and was on-air from 1994 to 2004. Meanwhile, "In the Heights" is a musical drama released in June earlier this year.

Celebs and fans took to the comments section to share their reaction to this hilarious video.

Barrera didn't stop the "Friends" reference even in the comments section as she wrote a line from the opening song, "But… I’ll be there for you." YouTuber Arron Crascall commented, "epic ness" with fire and laughing emoji. Musician Joel Taylor simply wrote, "Hahahaha."

Fans also gushed over Cox for making this fun video with Barrera.

On the work front, Cox will be next seen on the shows "Shining Vale" and "Last Chance U." Considering her upcoming movie, "Scream" is slated to release only in theatres on Jan. 14, 2022. The first installment of the franchise was released in 1996.

Barrera will be next seen in a TV series, "Breathe," which is slated to release in 2022.

Courteney Cox Actress Courteney Cox poses for photographers upon arrival at the Ivor Novello awards in central London on May 19, 2016. Photo: Getty Images/ Justin Tallis