In Game Score Update Help ?

Hi as you can see my code it says right at the bottom of the code --update score @@@@@ Put this code behind the collision event button or wherever you want to update your score @@@@@ how would i do this i think it is a bit self explanatory but sorry im new to this ? Can someone guide me Thanks in Advance   

    —for setting score
    local setScore = function( scoreNum )
        local newScore = scoreNum
        
        gameScore = newScore
        
        if gameScore < 0 then gameScore = 0; end
        
        scoreText.text = comma_value(gameScore)
        scoreText.xScale = 0.5; scoreText.yScale = 0.5    --> for clear retina display text
        scoreText.x = (480 - (scoreText.contentWidth * 0.5)) - 15
        scoreText.y = 20
    end
     --------------------------------------
        – SCORE DISPLAY
        scoreText = display.newText( “0”, 470, 22, “AmericanTypewriter-Bold”, 64 )
         scoreText:setTextColor( 217, 233, 33)    --> white
        scoreText.text = gameScore
        scoreText.xScale = .5;
        scoreText.yScale = .5    --> for clear retina display text
        scoreText.x = (480 - (scoreText.contentWidth * 0.5)) - 15
        scoreText.y = 20
        dsrawatGroup:insert( scoreText )
    
    --------------------------------------        
            
            – SCORE LABEL DISPLAY
            scoreText1 = display.newText( “SCORE”, 470, 22, “AmericanTypewriter-Bold”, 64 )
            scoreText1:setTextColor( 217, 233, 33)    --> white
             scoreText1.xScale = .5;
            scoreText1.yScale = .5    --> for clear retina display text
            scoreText1.x = (380 - (scoreText.contentWidth * 0.5)) - 15
            scoreText1.y = 20
            dsrawatGroup:insert( scoreText1 )
    
        --------------------------------------
    
    
    --update score @@@@@ Put this code behind the collision event button or wherever you want to update your score @@@@@
             local newScore = gameScore + 10 – put as many as score you want to add replacing ‘10’
            setScore( newScore )

Take a look here: http://developer.coronalabs.com/content/events-and-listeners

Rich

Take a look here: http://developer.coronalabs.com/content/events-and-listeners

Rich