LeaderboardService | Need reviews

Before releasing LeaderboardService to the Community as an Open Source Module, I’d like to make sure that this Code is of highest quality possible in terms of readability & efficiency

Current features:

  • auto Saving and Updating
  • automatically pull and combine all entries
  • will not save keys with value that is not within minValue and maxValue
  • will not save keys with value that is not different from the Leaderboard
  • will not save keys with value that is more / less than Leaderboard.lastEntry.value
  • Will retry and handle errors with pcall
  • Check DataStore budget
  • Integrate MockDataStore for Offline / Studio usage
  • saves and updates synchronously with every Server

https://gist.github.com/RuizuKun-Dev/c14a570a79d18af4c328fecbb7fe40ae


  • Ready to ship
  • Needs improvements (reply with improvement!)

0 voters


Haven’t finished:

  • Add retry limit
  • Compress / Decompress values
  • RemoveAsync keys that don’t meet Saving conditions meet Removing conditions
  • Turn into OOP by using Metatables
5 Likes