Maybe Jack Sparrow isn’t such a bad pirate after all.

Johnny Depp recently took some time away from shooting the the next “Pirates of the Caribbean” to visit the Lady Cilento Children’s Hospital in Brisbane, Australia.

Dressed as Captain Jack Sparrow, Depp and actor Stephen Graham visited with the children and their families for over three hours.

“Now, if there’s other people in it, why do you call it a selfie?” Depp asked one child, while posing for a picture.

The special meet-and-greet was put together by the Children’s Hospital Foundation.

Disney’s “Pirates of the Caribbean: Dead Men Tell No Tales” hits theaters July 7, 2017.