Ai move to does not working

Hi, I don’t know how, but I think I solved the problem, I have no idea how it worked, I just added variables from Cast.