Hi.
A few things I can see wrong here.
You need to save the data to webstorage AsJSON so simply add the following excluding the ""'s after "pontos" in the very last line of your code so it reads set localkey "Highscore" to pontos.AsJSON
Which solves the other problem that you set pontos as a global but in this line of code it's enclosed in "" which the computer then reads as a string
So if pontos had a value of 100 then typing pontos will record the value 100 but typing "pontos" will record the value pontos. <img src="smileys/smiley5.gif" border="0" align="middle" />
If the programme is expecting a number and it gets a string you have problems.
Then delete the 2nd instance of on start of layout/Local key highscore exists it's not neccesary.
Then you have problems with Highscore you'll notice "" are back on two but not the first usage.
Have you called an object the same name as a Global (pontos)?
TBH it's a little messy if you could upload a capX it will be easier all round.
In the meantime the suffix .AsJSON is your friend have a read up on it and watch out for Globals in ""'s. <img src="smileys/smiley4.gif" border="0" align="middle" />