Here I rewrote it zeroing in on all problems. Be happy Skyld and leave me and my caveman scriptign alone. >:[
PHP Code:
function onCreated()
{
this.value = 0;
}
function onPlayerTouchsMe()
{
if (this.value = 0);
this.value = 1;
player.chat = "On!";
}
else
{
this.value = 0;
player.chat = "Off!";
}