My Global Leaderboard not removing RemovedPlayers from it

script:

https://gyazo.com/26df1545d900c9cfa9be81c74336050c

https://gyazo.com/8384a280e49db3c6aeb38767bfc3b601

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

3 Likes

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)?

yes what you meant :smiley: :smiley:

1 Like

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

1 Like