How to use the score property

[China] Siro
Joined 25/02/2019
Posts 128
08:25 AM 16/03/2020
I found the score property in node hill but I want to know how to use it and anything else you can do with it.


[PLUS] cheats
Joined 28/07/2019
Posts 692
12:59 AM 17/03/2020
score is part of the player, so to get the player's score you would do player.score. To set their score you player.setScore(100)

A script changing each player's score to 100 would look like:

Game.on('playerJoin', player => {
player.on('initialSpawn', () => {
player.setScore(100)
})
})

1