What's its role in the sentence below?
クラスのもの皆が彼の冗談に笑った。
Japanese Language Stack Exchange is a question and answer site for students, teachers, and linguists wanting to discuss the finer points of the Japanese language. It only takes a minute to sign up.
Sign up to join this communityIt's 者【もの】, a word that means "person/people".
Unlike 人, it's usually used as part of a compound word (eg 田舎者), or at least modified by another word/phrase. It's also often used as the humble word for 人, which is not the case with your example.