public static void AddScore(this PhotonPlayer player, int scoreToAddToCurrent) { int current = player.GetBasketScore(); current = current + scoreToAddToCurrent; Hashtable score = new Hashtable(); // using PUN's implementation of Hashtable score[PunPlayerScores.PlayerScoreProp] = current; player.SetCustomProperties(score); // this locally sets the score and will sync it in-game asap. }