1

alibix123 175
7 years ago

How do I start on making one? Do I tag a killer and add a number for every time the killer has killed? How do I show this on a leaderboard?

0
thank you i was doing it all wrong i tried for 2 days to make this and it was annoying as heck thank you this really helped me even if it was from 6 years ago PuewoThePuro 0 — 1mo

3
Bubby4j 231
7 years ago

Leaderboards are just some IntValue items inside all Players.

game (DataModel)
Players (Player Service)
Player1
KOs (IntValue)
WOs (IntValue)
Player2
KOs (IntValue)
WOs (IntValue)
Player3
KOs (IntValue)
WOs (IntValue)


To make one, at the least you need to bind to the PlayerAdded event, which will put the leaderstats object into the player along with the types you want to add, such as KOs, WOs.

Then, you need to bind to whatever events you need to in order to keep track of your leaderstats items, such as binding to humanoids to track when they die, etc etc.

Here's a simple script that will create the initial leaderstats objects, along with a table you can manipulate to set what items you wanna keep track of

local stats = {"KOs", "WOs", "Money"}

for _, stat in pairs(stats) do
end
end)

0
Wow this just blew my mind I thought leader boards are using a service O.O MessorAdmin 598 — 6y