A St Andrew’s University student who drove child victims to the brink of suicide with a revenge porn blackmail plot is facing a lengthy prison sentence.

Brilliant student Glen Wilson blackmailed children into making hardcore sex films for him after grooming them across a number of social media sites.

He also threatened blackmail against them.

At Perth Sheriff Court, Wilson was remanded for a psychologist’s report and placed on the sex offenders register.

Sheriff Gillian Wade told him: “It is very likely, if not inevitable, that a custodial sentence of a significant period will follow and it is appropriate for this report to be prepared in the custodial setting.”