#GUI Custom Leaderboard, OOP, Script

1 messages · Page 1 of 1 (latest)

tepid saffron
#

Hi guys

I would like to ask, to know your experience in creating custom leaderboards, through gui elements with sorting through uiListLayout

At the moment, I have done everything necessary to write a script for the leaderboard

I did the following, prepared the display of players in ScreenGui
The following structure

ScreenGui > ScoreLeaderstats (frame) > MainFrame > uiListLayout, PlayerScore, PlayerScore

PlayerScore is in my ServerStorage, which I will clone in the future

in PlayerScore next stucrutra (PlayerAvatar, PlayerPoints)

But the following points are not clear to me

Firstly, how to properly replicate the leaderboard from the server to the client

While my idea of how to make my own leaderboard is very complicated, in my game I need to update the leaderboard every time a player collects points and sort by the number of points, displaying 8 people in the leaderboard

Secondly: I studied one YouTube video on how to implement my leaderboard and RemoteEvent was used there, and the PlayerScore is stored there in ReplicatedStorage, is it safe, can they not change this value, thereby later cloning the changed value to the players

The player's points are in
• Player
• • PlayerPoints(IntValue)
• • PlayerAvatar (String Value)

PlayerAvatar keeps its avatar a link to the player's avatar (HeadShot)

If it’s not difficult for you, I’ll be glad to read how you implemented your custom leaderboard (especially if you used OOP), what is replicated where, where

thanks

#

Why do I want to pay attention to the leaderboard and implement it through OOP, because in my place there will be various kinds of leaderboards, by time in the game, balance, victory, and so on