A man has admitted instructing what he believed to be a 13-year-old girl to perform a sexual act.