Robert Pattinson
Robert Pattinson has been cast in “Good Time,” a new caper film from indie filmmakers Josh and Benny Safdie. Pictured: Pattinson arrives at the 2015 Vanity Fair Oscar Party in Beverly Hills, California, Feb. 22, 2015. Reuters/Danny Moloshok

Robert Pattinson has been cast in “Good Time,” a new caper film from indie filmmaker duo Josh and Benny Safdie. Pattinson's most recent indie film was 2014's "Maps to the Stars." The filmmakers confirmed the news on Twitter.

In "Good Time," Pattinson will play a bank robber named Connie who tries to run from the police but does not succeed. “Excited to announce a project we've been working on and very excited to make with the untamable Robert Pattinson,” the filmmakers tweeted. “Good Time” will be produced by Sebastian Bear-McClard of Elara Pictures, writes the Hollywood Reporter, adding that the script is written by Josh Safdie and Ronald Bronstein.

The Safdie brothers' most recent film was this year's “Heaven Knows What,” which received huge critical acclaim. The film tells the story of a drug addict (played by Arielle Holmes) who falls in love with someone in New York. “Heaven Knows What” was awarded the C.I.C.A.E Award at the Venice Film Festival. It was also appreciated by the critics at the Toronto and New York film festivals.

Pattinson, 29, worked with many indie film directors in the past after he ended his work in the “Twilight” series. In the film “The Rover,” Pattinson worked with David Michod, while on 2012's “Cosmopolis” and “Maps to the Stars” he worked with David Cronenberg. Pattinson also has worked with indie director Werner Herzog on this year's “Queen of the Desert.”

The British actor is currently working on “Life,” a film based on the life of photographer Dennis Stock, who was assigned to take photos of the late actor James Dean in 1955. The movie is expected to be released later this year. The actor also stars in two other films, “The Childhood of a Leader,” a drama film produced and directed by Brady Corbet, and “The Lost City of Z,” with Sienna Miller and Charlie Hunnam.