Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change leaderboard values (KOs WOs ect)?

Asked by 8 years ago
Edited 8 years ago

I tried looking at the wiki, but I couldn't find anything that helped me with changing the value of KOs or WOs on a leaderboard, I've also tried looking at some free model leaderboards to see what I can try to do, but it didn't help me either. Does anyone have a website that can help teach me the requirements of making an efficient leaderboard?

(I'm NOT asking for free code)

1 answer

Log in to vote
0
Answered by 8 years ago

It's ok if you ask for free code. That's the point of this site :) Though it's** SUPER EASY** to change the KOs and WOs. Here you go, i've made it user friendly since you remind me when i just started scripting and i know the struggle.

local selectedplayer = "ReynaldoVictarion"

I've added your name for example purposes

local changeKOs = false
local changeWOs = false

Change those values to true if you want to change WOs or KOs

Now do not change the next code, except if you want to, you can change the + to - so that you subtract instead of add points

Alright, just kidding. I've made values specificaly for you

local subtractKOs = false
local subtractWOs = false

If you set any of these to true, it will subtract KOs or WOs, otherwise it will add them.

local KOsamount = 5
local WOsamount = 5

Now you put what amount of KOs or WOs do you want to add, in this case, i put 5 for each of them

And now, do NOT edit any of the scripts below.

if changeKOs == true then
    if subtractKOs == true then
        game.Players[selectedplayer].leaderstats.KOs.Value = game.Players[selectedplayer].leaderstats.KOs.Value - KOsamount
    else
        game.Players[selectedplayer].leaderstats.KOs.Value = game.Players[selectedplayer].leaderstats.KOs.Value + KOsamount
    end
end

if changeWOs == true then
    if subtractWOs == true then
        game.Players[selectedplayer].leaderstats.Wipeouts.Value = game.Players[selectedplayer].leaderstats.Wipeouts.Value - WOsamount
    else
        game.Players[selectedplayer].leaderstats.Wipeouts.Value = game.Players[selectedplayer].leaderstats.Wipeouts.Value + WOsamount
    end
end

Now, put then all together in the correct order and you will get a working system. Hope this helps you since i worked 30 minutes on this :)

0
This did not work, still normal player list with only player name. :( ReynaldoVictarion 70 — 8y
Ad

Answer this question