Casting intiger from player to hud

I think, score should be set when is done, not on event tick, this is very bad optimization especially with casting on tick.