I have not laying around this specific code. Even if I did this is not how this forum works. Just asking for code is a no-go. Low effort posts are against the rules !.
Thats the part of devloping software. Just start with the most simple thing (fe just draw a line between the two points) and expand upon that, step by step. Look in the documentation which methods may help you. Look for some tutorials about the sub-steps you mentioned.
Most people here are hesitant to spoon-feed “lazy” people which show no own effort. Also this is the scripting subforum. So code is discussed here. An empty method body is nothing worth to discuss IMO. So if you want help you will have to come up with some code worth discussing.
Just asking someone else to write the code for you ist just annoying and, as I said, against the rules.
If you are beginner then head to the learning section and/or do some tutorials. Search about the topic.
GameDevelopment requires serious learning effort. The forum is not meant to teach you everything from scratch to save you this effort. You will have to show that you are willing/capable first.