If only things were straightforward...
A success for the "out" campaigners would almost certainly trigger a fresh independence referendum in Scotland, assuming the majority north of the border voted to stay in. A recent MORI poll for The Scotsman newspaper suggested that only 26% were in favour of leaving Europe, 12% undecided and 62% to remain part of the EU.
The figures quoted indicated that 54% of Scots would vote yes, if a fresh referendum was called. From what I've seen and heard recently, from those who vigorously opposed independence last time round, I think 54% is a bit on the low side.
Interesting times ahead.
JF