basically, they want independence, they want to be their own country but statistics show that Scotland voted to stay but why would they stay if they want to be independent from everyone else
A Union and something like the UK are different.
the UK is kind of like states like in the US, while a union is a bunch of cooperating countries with different laws and guidelines and stuff.
Scotland wants to be free of the UK but still be cooperating with the EU in a sense.