Students at West Royalty Elementary School in Charlottetown saw a different side of their teachers after winning a bet last week.

The teachers at the school unveiled their dance video that showed them grooving down the halls, in the playground, and through the classrooms.

The high-stakes ante was made after sales slumped for a fundraiser. Students were asked to sell pieces of a 'peace' puzzle — a giant puzzle filled with messages about peace and goodwill. The money raised was going to be donated to the charity Free the Children.

But the teachers noticed that the students needed a little more motivation. They put out the offer — if the children sold all the pieces in just one week, the teachers would make a music video.

The puzzle pieces were gone in a flash, and the school raised $1,500 for the charity.

Students at West Royalty Elementary School in Charlottetown gather to watch the dance video.Students at West Royalty Elementary School in Charlottetown gather to watch the dance video. (CBC)

Then, it was time for the teachers to put on their dancing shoes.

"That's really fun for the kids because they love to see their teachers making fun of themselves," laughed Grade 5 student Lauren Harper.

"Oh, the students were beyond excited with it, they really seemed to enjoy it," said Vanda Deighan, a teacher at the school. "It was a blast for us, we had a great time practicing and coming up with unique ideas and fun ideas."

The video proved to be fun for the children, who cheered and laughed while it was shown at an assembly Friday. It was also posted on YouTube under the title "West Royalty Dance 2" so the students could watch it again.

The students said they learned some valuable lessons while raising the money.

"We have hospitals, and we have schools, and we can do stuff that other people can't," said Grade 5 student Bila Gaite.

The teachers said they're already brainstorming what they can do next year to inspire the students to raise more money.