£11 million gives Scottish communities hope for the future