Hello world! I'm going to take the Loki waving movie and change it to be a waving procedure. We have a lot of code here. Instead of having all this code, I'm going to put all of this code into a procedure. Once I put it into a procedure Then all I have to have here is to say loki.wave. Furthermore, I'm going to write it in such a way that I can have any biped wave. Then we're going to add a couple of other bipeds. other bipeds, and they can wave. So, I would really like to copy all of this code to the clipboard. There's no really easy way to put all of it to the clipboard and I don't want to do this one up to the clipboard and then go all over the place. So I going to do kind of a little trick here. I'm going to add a while loop. I don't really want it in a loop, but if you have a loop If you have a block of code, you can copy that to the clipboard. What I'm going to do is to create that while and one by one I'm going to copy everything to that loop. One by one copy everything there, so first the variables, then the I'm going to put in the comments, move it up there, move that loop up there and the next comment, move it up there, and that last piece move it up there. Another comment, stick it in there. And this last block, put in there, so everything is inside that while loop now. Then I'm going to right-click on that while loop and say copy to clipboard. I want to just disable this whole thing, now... you notice this little block up here. I can add a procedure for biped, Loki, or the scene. Instead of adding it for Loki, to add it for a biped, if I do it for any biped, that code will be able to be used for several different people and as many times as I want. So, add biped procedure, and I'm going to name it waveRightArm. usually you have a verb and noun, or noun phrase. Then I'm going to copy everything from the clipboard and then just take it out of that, you can say to dissolve the while loop. And the while loop is gone. But you'll notice that there is red here, because we don't want to say Loki, we want to say "this", everywhere you see that red warning were going to change Loki to this. (A bunch of places.) Now, I'm going to go back to my first method and going to delete this whole.. there's nothing happening right now So let's do our my first method and when we pick Loki you see he has a new procedure that says Loki this.Loki.waveRightArm. and I'm just going to take that and put it in my code and then I can run it. and there he is, waving his arm. What I want to do now is go and add another character or two We can do the March hare, he's a biped. And go back to my code and you'll see the March hare also has a procedure called waveRightArm. and we have Loki waves, and the hare waves, and if we want we could make them do that together.