Lesson lock after update

Do you mean something like this?
image

It’s one of @Kumirei’s scripts here.