The Students’ Association gives free attack alarms throughout the year to any student wanting one: just talk to one of the sabbatical officers or ask at the Reception. The University ASC (Advice and Support Centre on 79 North Street) also has a small amount of attack alarms available for students.
Although St Andrews is generally a safe town, walk home in groups when you can, and if anything happens, you should contact the police immediately.
Student Services also offers professional and confidential support and have experts trained in sexual assault. Contact them at email@example.com.