door learning script