Thank you for sharing your techniques and codes, I'll study it later :)
I also noticed that your leaderboard has the flags UI, how do you make that feature? Something like: checking a table to the player's IPs and find out his country? Really appreciate your sharing!