A man who threatened a terrified petrol station worker with a stun gun during a botched robbery has been warned to expect a lengthy prison sentence.
Jamie Miller, 22, used the weapon to try to force 25-year-old Alexander Smith to open the till at the Moto Service Station in Kinross in February.
He also produced a knife and threatened to stab Mr Smith in a bid to get his hands on the money from the till.
The High Court in Edinburgh heard how Mr Smith eventually managed to flee.
Miller was forced to leave the garage empty handed as a result.
However, two days later Miller joined forces with his 35-year-old friend, Steven Finlayson, to rob the David Sands corner Store in North Street, Lochgelly, in Fife.
On that occasion the pair managed to get away with £656 before police caught them.
They pleaded guilty to one charge of armed robbery before judge Lord Pentland. Miller also pleaded guilty to another charge of attempted armed robbery.
Sentence on the pair was deferred until 14 June for background reports.