A yellow weather warning for thunderstorms is in place for Scotland following a mini heatwave.
Heavy downpours and flooding are expected in places across the country on Thursday between 10am and 8pm.
The Met Office has warned the downpours could cause flooding in some areas which could lead to property damage and disruption to travel.
The Scottish Environment Protection Agency has issued flood alerts for the following regions: Aberdeenshire and Aberdeen City, Argyll and Bute, Ayrshire and Arran, Caithness and Sutherland, Central, Dumfries and Galloway, Dundee and Angus, Easter Ross and Great Glen, Edinburgh and Lothians, Fife, Findhorn Nairn Moray and Speyside, Scottish Borders, Skye and Lochaber, Tayside, West Central Scotland, Wester Ross and Western Isles.
The weather warning comes as Scotland is likely to record the hottest September day it has seen in more than 100 years.
Met Office meteorologist, Marco Petagna, said if a temperature of more than 28.1C is recorded in Scotland on Wednesday, it would be Scotland’s hottest September day since 1906.
The rest of the UK has basked in the end of summer heat this week with the highest temperature recorded on Tuesday reaching 30.7C at Gogerddan, in Dyfed, Wales, according to the Met Office.
Highs of 30.4C were recorded in west London and 30.3C at Pershore in Worcestershire.