Hypo: Further to that, they can only have another referendum if Parliament allows them to, and if it did, and (indulging in this fantasy) they won, the present 59 Scottish MPs will lose their seats and all influence in the UK Parliament.
So they will have their own little assembly, but effectively the overall control of Scotland will come from Brussels, a control which they will be incapable of changing - which is the reason the UK is leaving, and the mass immigration the UK is hoping to now control, will still be able to go to Scotland.