Contact your local authority. They have a statutory responsibility to anyone threatened with or experiencing homelessness. By law, local authorities must offer a minimum of temporary accommodation, advice and assistance to all homeless households and those at risk of homelessness.
As well as advising you on your housing options, your local authority can help with financial, welfare and legal matters. It can put you in touch with other services that can help you, including social work or mediation services and organisations offering support for young people, people with disabilities or people with drug or alcohol problems.
The Shelter Scotland helpline provides free independent and specialist advice on housing related matters. Call it on 0808 800 4444 (lines are open Monday to Friday from 9am to 5pm) or visit its website.
The Citizens Advice Bureau is another useful source of help and advice. Find details of your nearest bureau on the Citizens Advice Scotland website.