'doorlock' does not name a type

So im making an esapce room with my school and the is for a code lock that runs a servo.