i want the global leaderboard will remove the player frame from the leaderboard when player exiting the game i did pcall function and from that i can’t understand why its not removing it
Is this only supposed to be a server-based leaderboard (I mean show the players that are in the server at any given time that are highest, not a global leaderboard)?
Do not use an ordered data store for this if you want it to only show the players in that particular server at any given time. Instead, simply pick the top players from the server. I suggest putting every player’s value in a table and then using table.sort. Here is some documentation on how to use it (scroll down to sort): table | Documentation - Roblox Creator Hub