(8) A weapon which is in a locked compartment of a motor vehicle or one which is in a locked container in or a locked firearms rack which is on a motor vehicle which is being used by an adult over 21 years of age to bring to or pick up a student at a school building, school function, or school property or on a bus or other transportation furnished by the school, or when such vehicle is used to tra