Not sure if it’s possible to do this one with design script because you need to have persistent storage. It can sorta be done with some python tho