Create lock and dim script