Humanoid robots equipped with social skills have come to be used increasingly in the field of education across various subfields such as science education, special education, and foreign language education. In order to enhance the use of humanoid robots in educational settings, and to comprehensively evaluate its impact on the transformation of the class, understanding students' attitudes towards the use of robots for educational purposes plays a critical role. This paper outlines the implementation and validation procedures of an educational robot attitude scale (ERAS) developed to measure the attitudes of secondary school students towards the use of humanoid robots in educational settings. The sample of the study comprised of 232 secondary school students. The development and validation process consisted of exploratory factor analysis and convergent validity. The developed scale consists of 17 items and represents four factors of students' attitude: engagement, enjoyment, anxiety and intention. These four factors accounted for 66% of the total variance of the scale. Internal consistency coefficient for the whole scale was found .90 according to the reliability analysis. The results of the study suggest that the scale is a valid, reliable, and efficient tool for measuring the dimensions of students' attitudes towards humanoid robots in educational settings.