MY CODE >> Moving Object
// This script was modified to display text above the object.  The text will either 
// say "Untouched" or the Avatar’s Name "touched me".  In order to diplay text above the object 
// I used the llSetText function.  In order to get the avatar’s name I used the llDetectedName 
// function.  The default text will say Untouched.  Once an avatar touches the object there 
// avatar’s name followed by touched me will be displayed.

string name;

default
{
    state_entry()
    {
        llSetText("Untounched", <1,1,1>, 1);
    }

    touch_start(integer total_number)
    {
        name = llDetectedName(0);
        llSetText(name + " touched me.", <1,1,1>, 1);
    }
}
// This script makes an object move up, down, right, and left.  The original 
// script only had the object moving forward.  I found the original script to be very 
// irritating because when I tried to delete the object I found myself having to run 
// after it trying to select it.  My modifications made the object essentially move 
// in a box pattern continuously.  I accomplished this by using for loops along with 
// the llGetPos and llSetPos attributes.  For me, the hardest part of designing this 
// script was getting the object to move in 4 different directions and having it end 
// up in the same position it started in.  I ended up drawing a diagram the help me 
// visualize the x, y, and z movements the object was going to make.

default
{
    state_entry()
    {
        integer p;
        
        vector x = <.1,0,0>;
        vector y = <0,.1,0>;
        vector z = <0,0,.1>;
        
        while (1 == 1) {
            // move up, right, forward
            for(p = 0; p<=5; p++) {
                vector pos = llGetPos();
                llSetPos(pos + x + y + z);
            }
            
            // move down, right, backward
            for(p = 0; p<=5; p++) {
                vector pos = llGetPos();
                llSetPos(pos + x - y - z);
            }
            
            // move down, left, backward
            for(p = 0; p<=5; p++) {
                vector pos = llGetPos();
                llSetPos(pos - x - y - z);
            }
        
            // move up, left, forward
            for(p = 0; p<=5; p++) {
                vector pos = llGetPos();
                llSetPos(pos - x + y + z);
            }
        }
    }
}