A 50-year-old Fife man is behind bars after sending sex messages thinking they were going to a 12-year-old girl.
Andrew Robertson also sent photos of his private parts to schoolgirl “Holly”, who was in fact a fake online profile set up by the police.
Robertson claimed he was 22 and said they could get married when she was 16.
Robertson, currently a prisoner in Perth, appeared in the dock at Dunfermline Sheriff Court.
He admitted that on various occasions between August 5 and September 9 at his home in Eagle Road, Buckhaven, he repeatedly sent sexual messages to “Holly”, someone he believed to be a girl under the age of 13, sent her sexually explicit photographs and attempted to cause a child to look at a sexual image.
Defence solicitor Alexander Flett said: “He entirely accepts what he did was wrong and that he has a problem he will have to deal with.
“He accepts he will be given a custodial sentence.”
Sheriff Pino di Emidio called for reports and Robertson will remain in custody until sentencing on January 7.