title: Making a leaderboard with Firebase Realtime database and Unity
body: <p>I am making a leaderboard by using firebase realtime database, unity and facebook ( for profile pic and name )</p>
  <p>But I am struggling, I am not sure about the way of doing that. I want to display multiple leaderboards -&gt; All time WORLD / REGION / FRIENDS score, monthly WORLD / REGION / FRIENDS and weekly one.</p>
  <p>I know I can use cloud functions to reset weekly and monthly leaderboards.
  But how can I store world and region scores ?
  Now I just have this -&gt;</p>
  <p><a href="https://cdn.discordapp.com/attachments/440873502535450627/821361474353889320/ld.JPG" rel="nofollow noreferrer">https://cdn.discordapp.com/attachments/440873502535450627/821361474353889320/ld.JPG</a></p>
  <p>Thanks to that, I can easily get region leaderboards getref.getchild users . getchild france and then orderbyvalue . limittolast ! this is good !</p>
  <p>The problem is how could I get world leaderboard ? ( I have other countries ) I am so lost...Do I need to make another structure for my leaderboard ?</p>