If you made the scoreboard then you need to keep an instance of it. If it's a scoreboard from another plugin, it either has to be set as the main scoreboard, or you need to get the scoreboard from an already existing player. You set scoreboards by calling Player#setScoreboard
Ok i was just wondering if I could just use another way to get it besides calling on it from somewhere as I do not know how to do that well