Displaying the highscore in Game Center

ive got a simple scoring system in a corona SDK game im making. It works well I have just been having trouble getting the score and saving it to Game Center… Heres the Code that displays the score on the screen

 

storyboard.state = {score = 0}
score = display.newText(storyboard.state.score, 35, 0, system.nativefont, 16)

Heres the Code that updates the score.

 

storyboard.state.score = storyboard.state.score + 1
score.text = storyboard.state.score

And here is where i want it to go to after the game finishes.

 

gameNetwork.request( “setHighScore”,
{
localPlayerScore = { category=“MyLeaderboards ID”, value=25 },
listener=requestCallback
})

It would have to go after the value=… its default 25 and ive tried a few things to no use. I’m getting the hang of this but im still lost in some things and this is one of them :stuck_out_tongue:

 

Thanks for looking :slight_smile:

nevermind i got it :slight_smile: just added storyboard.state.score after value = 

nevermind i got it :slight_smile: just added storyboard.state.score after value =