#what the error on that and didnt work????
1 messages · Page 1 of 1 (latest)
system.run(()=>{
for ( const player of world.getAllPlayers()){
const points = world.scoreboard.getObjective('Points').getScores(player.scoreboardIdentity);
if (points >100 ){
player.runCommand('give @s 1 diamnod_sword')
}}
})
getScores returns an array
use getScore instead
diamond_sword