Trying to script multiple elements for leaderstats to save through the use of a data store however, I keep coming across the same error over and over.
Here are the two scripts for the leaderstat values and the data stores. https://gyazo.com/eb8b0b6aadf9a2c4cfa7f5bb461e9ad2 https://gyazo.com/adc5b8e9b36f57286b80bcc3b64cf448
Upon playing the game only one value appears on the leaderboard. https://gyazo.com/c6194ea657384749d4b12d16381607c9
An error is returned saying leaderstats is not apart of the player. https://gyazo.com/e09c08ab446fb470c10cbc92e5c36a50
However, when checked in game leaderstats exists as part of the player. https://gyazo.com/e2ae4080484c1ece085e9bf82a9c8223

2 comments
Looks like it may just be a timing problem(the ore value is being put into the folder which has yet to be created.) I'd either put all the leaderstat values in the same script or put a wait in the ore script to allow the leaderstats folder to be made
Seems to have fixed the issue I was having. Appreciate it.