My script is not working

Please tell me, is there any documentation so that I can implement something similar?