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

Any one help?

Asked by 9 years ago

Guys I created a script which is a cash shop and it work with cash leaderboard but the problem is I want when u kill player u get cash or (Credits) can u guys pls help?

1 answer

Log in to vote
0
Answered by 9 years ago

I edited the default linked leaderboard, sorry I can't explain it but I marked the place's I edited so if you want to change them.

001stands = {}
002CTF_mode = false
003 
004function onHumanoidDied(humanoid, player)
005    local stats = player:findFirstChild("leaderstats")
006    if stats ~= nil then
007        local deaths = stats:findFirstChild("Deaths")
008        deaths.Value = deaths.Value + 1
009 
010        -- do short dance to try and find the killer
011 
012        local killer = getKillerOfHumanoidIfStillInGame(humanoid)
013 
014        handleKillCount(humanoid, player)
015    end
View all 162 lines...
Ad

Answer this question