Everyone who lives permanently in Scotland pays Scottish Income Tax.
You may also have to pay it if you have moved and spent over half the tax year living in Scotland.
If you have a house in Scotland and a house somewhere else, you may be liable for paying tax in Scotland. This will depend on which is considered your main home. Your main home will be the one that you usually live at and spend the majority of your time.
You may have to pay income tax in Scotland if you don't have a home here but stay there on a regular basis. For example, you might work and stay offshore or in hotels.