Mark Hamill offered his own congratulations (as well as a word of advice) to Marvel Studios after Avengers: Infinity War broke the domestic opening weekend box office record set by Star Wars: The Force Awakens in 2015.In his congratulatory note, Hamill referenced an image posted to the Star Wars Twitter account, which finds Rey handing her lightsaber over to Iron Man with the message, "From a Galaxy Far, Far away... to Earth's Mightest Heroes, CONGRATULATIONS on the biggest opening weekend in history! From Kathy [Lucasfilm head Kathleen Kennedy] and everyone at Lucasfilm."RELATED: Mark Ruffalo ‘Spoiled’ Infinity War’s Ending in 2017, and Nobody Noticed"Well done Marvel Studios and Avengers: Infinity War," Hamill wrote in his Tweet. "(FYI, Iron Man: Wait until after she leaves if you're going to toss that away. Trust me on this one.) From Mark and everyone at the Hamill house!"

RELATED: Avengers: Infinity War Funko Pop! Reveals Suprising Cameo

The joke, of course, references the moment in Star Wars: The Last Jedi when Luke Skywalker throws the lightsaber away after Rey traveled across the universe to give it to him. After that, he is unable to shake her, even though he refuses to train her in the ways of the Jedi.

Directed by Joe and Anthony Russo, Avengers: Infinity War stars Robert Downey Jr., Chris Evans, Chris Hemsworth, Mark Ruffalo, Jeremy Renner, Scarlett Johansson, Paul Bettany, Anthony Mackie, Paul Rudd, Elizabeth Olsen, Tom Holland, Benedict Cumberbatch, Chadwick Boseman, Chris Pratt, Zoe Saldana, Dave Bautista, Bradley Cooper, Vin Diesel, Tom Hiddleston and Josh Brolin. The movie is in theaters now.