In 2000, Lilley returned to Scotland with Dundee United, playing with them, Livingston, Morton again, and St. Johnstone, Stirling Albion then finally Forfar Athletic.
Lilley began his career with Greenock Morton and won a move to English Premier League side Leeds United in 1997.
His time at Elland Road was frustrating, with only four starts from 21 appearances and only a solitary goal when he replaced Lee Bowyer to score the winner in a 3–2 away win at Barnsley.
A move in December 2000 saw him head north to United and a debut goal salvaged a point at home to Rangers, although he would be sent off in his second game against former club Hearts.
Ultimately, it was Lilley's last-minute winner at St Johnstone which saved United from relegation and his six goals in the half-season would cement his status with the fans.