Students at a local high school got a serious lesson Wednesday on the dangers of drinking and driving.

Parkland High School hosted the Pennsylvania DUI safety simulator for students Wednesday afternoon.

The simulator is a virtual driving experience that creates impaired driving scenarios.

In the scenarios, either the student's car or another vehicle is being driven by someone under the influence.

The event allows students to better understand the dangers of impaired driving.