set a scoreboard

Is it possible that i overloaded a function? i am noticing that my function disappears when i put the commands inside it. how do i fix this?
Continue to help post