Wouldn't this be the script for clientSided?
package onLeaveClear
{
function disconnect()
{
commandToServer('ClearBricks');
//A little extra =D
commandToServer('MessageSent',"Bye.");
%Parent = Parent::disconnect();
//So it will send the command before they leave.
schedule(1000,0,%parent);
}
};
?
But this would be a good idea so someone wan't still saves but DaSord is right accept it wouldn't called the Disconnect function if the whole game would crash, am i right?