A teenager shouted and swore at police while stood in the middle of the road in front of traffic.

The 17-year-old, who can't be identified because of his age, admitted conducting himself in a disorderly manner during the incident in Ayr High Street on September 29 last year. 

The accused, described in court papers as a resident of Glasgow, admitted walking into the path of oncoming vehicles, shouting and swearing at police officers, and committing a breach of the peace.

At the time he was the subject of a bail order issued at Glasgow Sheriff Court just seven days earlier.

The procurator fiscal depute said: "At 5.35pm on September 29, 2023 police were on mobile uniformed patrol and saw a male causing a disturbance.

"He was standing in the road in front of traffic and appeared indifferent. He was informed he was under arrest for breaching the peace.

"He then became abusive calling them 'f**king bams' and 'f**king scumbag b******s'

"He was conveyed to Saltcoats police office and was cautioned and charged. He indicated he understood the charge."

Defence solicitor Robert Logan said: "He is currently still on bail and accompanied by his social worker.

"He has a number of matters at Glasgow Sheriff Court."

Sheriff Anthony McGlennan imposed a one-year community payback order with social work supervision, and transferred the order to Glasgow.