Figure out yourself how to stop it once started
So you help on getting the loop started but never to tell how to stop it?
Also you never even said how to start the loop, just how to create the function.
Well done, you helped him and everyone else A LOT.
On topic however, here you go.
To create the auto-clicker copy this into your console (press the ~ key ingame);
function m(){commandtoserver('Activatestuff'); $Spam = schedule(30,0,m);}To start it, type this into the console.
m();To stop it, copy this into the console.
cancel($spam);Hope this helped!