I have a system implemented in my game where the default leaderboard is replaced with a custom GUI, where:
- A player joins / leaves the game
- A GUI stored in ReplicatedStorage is edited to append / remove a TextLabel with the player’s name
- A remote event is then fired to ask clients to update the leaderboard (server → client)
- The GUI is cloned by the client into the player’s PlayerGui
I’m wondering primarily whether this is the most optimised way to handle implementing my own, custom leaderboard, or if there might be a service (/ traditional way) to achieve the same goal.
Scripts can be found below:
I’ve tried to document my code clearly so that it’s easily readable by other programmers, please let me know if I can improve further.
Any feedback is appreciated!