The Equality Act 2010 made it illegal for parents and children to be discriminated against by a school or teachers. For example: Schools cannot refuse to take a pupil because they or their parents are LGBT. Schools cannot deny LGBT pupils opportunities and facilities that they would offer to other students, for example, the chance to be head girl.
The Equality Act does not cover bullying by other pupils as a form of discrimination. However, if a pupil were to experience bullying because of their sexual orientation of gender identity, and the school did not address it as seriously as another form of bullying, this would be discrimination under the Equality Act. For more information, see EHRC's guidance for Scottish Schools on the Equality Act.
Schools also have a responsibility for the welfare and wellbeing of all their students.