HTML Code:
//#CLIENTSIDE
function onCreated()
{
seteffect(0, 0, 0, 0.65);
this.lightOff = true;
}
function onPlayerTouchsMe()
{
this.lightOff = !this.lightOff;
temp.curEffect = (this.lightOff? {0, 0, 0, 0.65}: {0, 0, 0, 0.85});
seteffect(temp.curEffect[0], temp.curEffect[1], temp.curEffect[2], temp.curEffect[3]);
}
Made it for era, change the temp.curEffect value's for the different level effects. Simple yet fun
