You’re thinking of Scooby-Doo and the Ghoul School (1988). Shaggy, Scooby, and Scrappy-Doo become gym teachers at Miss Grimwood's Finishing School for Girls—a boarding school for daughters of famous monsters (Frankenstein, Dracula, Mummy, Wolfman, Phantom). Scooby-Doo on Zombie Island (1998) is a different, darker film.