Hi! I think you should use this:
Code:Laser() { self endon("disconnect"); self notifyOnPlayerCommand("F", "+activate"); while(1) { self waittill("F"); self setClientDvar("laserForceOn", 1); self waittill("F"); self setClientDvar("laserForceOn", 1); } }