adding score

how would i go about adding score to my game 

See this tutorial.

http://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

thanks you it work but it just says 0000000 for score

What do you want it to say?  The tutorial should teach you why it has all the leading zeros and you should be able to adapt it to your needs.

i want the score to go up when i click the button

In your button handler, call the score.add() function with the amount you want to add to the score.

See this tutorial.

http://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

thanks you it work but it just says 0000000 for score

What do you want it to say?  The tutorial should teach you why it has all the leading zeros and you should be able to adapt it to your needs.

i want the score to go up when i click the button

In your button handler, call the score.add() function with the amount you want to add to the score.