Scotland won’t be allowed to join the EU, it’s budget deficit to too high for the EU to gain anything by allowing it in. This was made very clear during the last referendum, and things have only gotten worse in that regard as the EU will not recieve funding from the UK.
Also from what I understand, most of the islands would remain part of the UK, or defect to Norway, which would mean Scotland would lose most of its oil reserves.