This model and ModuleScript will help many developers when creating Leaderboard, it works with DataStoreService, fetches the data from your DataStore and sorts it in descending order.
How to use GLeaderboard?
GLeaderboard was published to Roblox through a Model, it contains 3 different objects:
’Leaderstats’: GLeaderboard already contains its own Leaderstats created, it can be changed to suit the developer who uses it, in the same way, you can create your own Leaderstats, and use GLeaderboard through require (). I suggest putting it in Server ScriptService.
’Leaderboard’: This is the main board, it must be placed in Workspace, otherwise GLeaderboard will not work.
’README’: A guide within a Script, which helps in the placement of all objects in their corresponding directories.
Using GLeaderboard Module
The module was created with OOP, so it contains different useful methods, which are:
local GLeaderboard = Module.new(Leaderboard Part: instance, Leaderstats Name: string, Items: IntValue, Refresh Time: IntValue).
Module.new() you can customize the leaderboard with your own Leaderstats.
GLeaderboardModule:UpdateData() --> This is connected with the constructor .new()
Module:UpdateData() updates the Leaderboard positions, it is connected with the Update Time set with
- Roblox Model: GLeaderboard - Roblox
- Module Id:
7048780231(you shall use it with
I hope this is useful to you, I leave you my portfolio, I currently have the commissions open to all public.