A Queensland school community is in mourning after a teacher was killed in a road crash while travelling to work on Friday morning, the last day of school for Year 12 students.

Key points: It is understood the school has cancelled its annual "clap-out" ceremony for Year 12s after the tragic news

It is understood the school has cancelled its annual "clap-out" ceremony for Year 12s after the tragic news Some students shared tribute messages, describing the teacher as "one of the best and jolliest teachers"

Some students shared tribute messages, describing the teacher as "one of the best and jolliest teachers" Police do not believe speed was a factor in the crash

The 42-year-old teacher was driving to school at Nambour State College, on the Sunshine Coast, when he crashed his car into the back of a parked semi-trailer truck about 8:00am.

Paramedics were called to the scene on Nambour Connection Road but the man could not be saved.

It is understood the school has cancelled its annual "clap-out" ceremony for Year 12s after hearing the tragic news.

Some students shared tribute messages about the teacher on social media.

"You were one of the best and jolliest teachers of Nambour High, you will be missed by all your past and current students," one student wrote on Facebook.

Another female student wrote: "RIP … despite dropping my school diary out the window many times a lesson, you never lost your cool with us."

'Highly respected and beloved'

In a statement, school principal Anthony Green said the community was "deeply shocked and saddened by the sudden and tragic passing of one if our teachers" on the last day of school for Year 12s.

"He was a highly respected and beloved member of our staff who will be greatly missed by all his colleagues and students," the statement read.

"Our thoughts and sincere sympathies go out to his family, friends and loved ones during this difficult time."

"Support is being provided to students and staff, and guidance counsellors will remain at the school to provide support in any way they can and for as long as it is needed."

The Forensic Crash Unit is investigating the crash.

Police do not believe speed was a factor in the crash and will now prepare a report for the coroner.