Simon Pegg's dream is to write a Star Wars film.

As well as playing engineer Montgomery Scott in new movie Star Trek Beyond the British star also penned the script, sharing writing duties with Doug Jung on the film, the third since the iconic science-fiction franchise was rebooted by filmmaker J.J. Abrams.

And Simon wants to follow in the footsteps of J.J., who directed the first two new Trek films before moving on to take the helm on Star Wars: The Force Awakens.

When asked by WENN if it would be a dream come true to pen a new Star Wars movie, Simon said, "Yeah, but maybe one giant beloved sci-fi fantasy's enough really, there's always a lot of pressure from the fans and it sometimes gets quite daunting when you face the fanbase."

Invited to clarify if this meant he'd take a job helping make a Star Wars film he added, "Yeah, probably."

J.J. cast Simon in a small role in The Force Awakens as he briefly appeared as Unkar Plutt, the boss of a junkyard.

Although J.J. has currently stepped back from directing duties on the franchise, with Rian Johnson directing Episode VIII, the chronological follow-up to The Force Awakens, he still holds a role as an executive producer.

And if there are any problems with the scripts for any of the new Star Wars instalments, Simon says he'd consider helping out, as he explains, "You know JJ's a pal, I don't think he needs any help but I always pick up the phone when he rings."

Despite his desire to pen a Star Wars film, Simon says of his role as a screenwriter on Star Trek, "It's incredible and I try never to lose sight of that and Doug Jung and I were both aware of the property we were being given, the universe we were given access to and it is a very beloved thing and we wanted to do it justice, we wanted to write a Star Trek film, write something that was Star Trek in its DNA."

Star Trek Beyond, which in addition to Chris Pine as Captain James T. Kirk and Zachary Quinto as Mr Spock, sees Idris Elba play the film's villain, Krall, is released in the U.K. and U.S. on 22 July (16).