A hard-up gym instructor forced a taxi driver to rob a bank for him by threatening him with a gun and "bombs".

Andrew Patrick held a gun at petrified Alistair Rankine before giving him a bag he said had a bomb inside.

Patrick, who pretended to be Polish, ordered the driver to steal cash from a Bank of Scotland branch in Kirkcaldy, Fife.

Mr Rankine handed over a note to staff that claimed they had only minutes to fill the bag, and that devices would go off if police were called. The letter also claimed the driver had a bomb strapped to him.

When Mr Rankine eventually left the bank with almost £10,000, Patrick was gone. Amid dramatic scenes, a team of armed police and an army bomb unit soon arrived.

The explosives were found to be fake, consisting of little more than tubes, cotton wool and a mobile phone circuit board.

Patrick was later caught following a high-profile media appeal, although initially denied being involved.

The 40-year-old is now behind bars after he admitted carrying out the assault and robbery. He will be sentenced next month.

The first offender had been working at the time as an instructor at the Fitness Factor gym in Kirkcaldy.

He was earning up to £300 per week, but prosecutor Allan Nicol said it appeared he had been having "some financial difficulties".

Taxi driver Mr Rankine was working at around 1pm on November 11 last year when he was asked to make a pick-up at an industrial estate in Lochgelly, Fife.

It was Patrick who had made the call to the taxi office while using a fake Polish accent.

When Mr Rankine arrived, Patrick got in clutching two holdalls. He was also wearing a cap, sunglasses and had his chin covered with a scarf.

Patrick, still claiming to be foreign, gave directions but they ended up at a dead end in Kirkcaldy.

He then pulled out a black handgun and said: “You'll be safe if you do what I say.” He handed a note to Mr Rankine and insisted he hand it over to staff at the nearby Bank of Scotland on Carberry Road.

A shaken Mr Rankine got out of his car taking one of the holdalls with him. As he crossed the road, he pleaded with a passer-by: "I am a taxi driver, there is a boy in my taxi with a gun. It's not a wind up."

The driver walked into the bank and told a staff member that he had been ordered to hand over the typed note.

It stated: "There is a transmitter in your bank and the lines are wired. We can hear you and know if you try to call police.

"There is a bomb strapped to this man ... also in the bag. They can go off if transmitter detect signal or call."

The note also said once money was received Mr Rankine would return with a code to deactivate "the bombs".

It concluded: “You have four mins to fill this bag”.

The High Court in Glasgow heard Mr Rankine was "clearly unsettled and agitated" during the ordeal in the bank.

Despite the warnings, police were alerted and the note was read over to them. A security alarm was also pressed.

One worker looked in the holdall and saw what she assumed was a bomb. Anxious staff initially filled the bag with around £7000 but Mr Rankine said "they would not be happy with that" and asked for more.

The reluctant taxi driver was eventually escorted out the bank with a total of £9730 in cash.

As he nervously headed back to his car he found Patrick had vanished.

Patrick was instead at a nearby store which he often used to buy water for his gym. A shop worker then gave him a lift back to the fitness centre unaware what had just happened.

Armed officers, a bomb disposal team, police air support and a dog unit soon swooped on the bank. As staff were evacuated to a nearby bingo hall, a radio-controlled robot was used to retrieve the bag - feared to contain an explosive device.

Prosecutor Mr Nicol told the court the "bombs" consisted of grey tubes held together with masking tape.

He said there also appeared to be a circuit board on each which looked like the keypad of a mobile phone.

The court heard the money from the bank was recovered.

Police found Patrick matched the description of the suspect and his mobile phone placed him in the area at the time of the crime.

This led to his home, car and work being searched. Paperwork was found at the gym which showed he had money troubles and a cap, similar to one described by Mr Rankine, was also discovered.

A colleague also discovered emails in the drafts section which said "there is a bomb" and "bomb is strapped, put the money in the bag, not to panic".

Patrick initially rejected allegations he was involved but later told police where the firearm that had been used was. It turned out to be an imitation gun. The court heard the raid had a "major impact" on those affected.

Mr Rankine continues to suffer flashbacks, insomnia, anxiety and fear and bank staff were left “extremely shaken”.

Detective inspector Stewart Andrew of Kirkcaldy CID said: "This was a terrifying experience for the taxi driver who was called to pick up a fare and subsequently forced to participate in a robbery.

"He must be commended for his bravery throughout, especially given the threat of an alleged explosive device, and his help during our investigation.

"Officers responded quickly to ensure the safety of local residents, utilising EOD resources to ensure there was no threat posed by the device, and conducted extensive enquiries in order to identify Patrick as the assailant.

"I also want to praise the bank staff for their courage, and thank the people of Kirkcaldy for their continued support of this investigation."

Lord Bannatyne remanded Patrick, of Lochgelly, in custody and deferred sentencing until May 20 for background reports.

Download: The STV News app is Scotland's favourite and is available for iPhone from the App store and for Android from Google Play. Download it today and continue to enjoy STV News wherever you are.