For the future, please use the Scripting forum for scripting questions, not the 2D forum. Use the 2D feature forum when asking about 2D features. I’ll move this thread for you.
Also, please use code-tags when posting code as opposed to taking images of code.
Thanks.