How to fix this scoresystem glitch?

ok so since idk how to fix the glitch with the score system Im just gonna have it reset automatically or by the press of a key I tried something like this `var scorer = pc.createScript(‘scorer’);

scorer.attributes.add(‘scorr’, {type:‘entity’});

scorer.prototype.intalize = function() {
this.script.entity.findByName(‘score’);
};

scorer.prototype.intalize = function() {
if(this.app.keyboard.isPressed(pc.KEY_F));
this.score.reset();
};

scorer.prototype.reset = function() {
this.entity.removeComponent(this.entity.findComponent(‘scoresystem’)) ;
this.entity.removeEntity = true;
this.entity.removeEntity = false;
};`

So it doesnt work and btw heres the glitch Im talking about - YouTube