Rotate On Click

integer switch = TRUE;
integer count = 0;
 
default
{
    state_entry()
    {
        llPlaySound("2df2a3b9-9b73-9f90-75e1-9cd98e9a713d",1.0);
        llSay(0,"WaterWheel Pulley Initialized");
    }
 
on_rez(integer start_param)
    {
       llResetScript();
    }
 
    touch_start(integer total_number)
    {
        if (llDetectedKey(0) == llGetOwner())
        {
            if (switch == FALSE)
            {
            switch = TRUE;
            llSay(0,"Started");
            llTriggerSound("091402dc-f0ea-81d4-6ca0-728649a1c0c5",1.0);
            llTargetOmega(<0,0.2,0>,PI,1.0);
            } 
 
            else if (switch == TRUE)
 
            {
            switch = FALSE;
            llSay(0,"Stopped");
            llTriggerSound("091402dc-f0ea-81d4-6ca0-728649a1c0c5",1.0);
            llTargetOmega(<0,0,0>,PI,1.0);
            }
        }
        else
         llInstantMessage(llDetectedKey(0),"Owner says no.");
    }
}

 

Flash Scratch to SL - Your Scripting Tool

Script ImageNeed to write a LSL script and don't know how to script?  I know I hate trying to get my head around LSLS when I an in a time crunch. So why not give Flash Scratch a try! Its a great tool for learning and scoding your own scripts for Second Life without having to pay someone to do it and without a crash course in LSL

A Huge thanks to John Bennet of ATLAS Institute at University of Colorado and Eric Rosenbaum at MIT for writing Scratch for SL to begin with.

Read more: Flash Scratch to SL - Your Scripting Tool