WoIfz
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 28 |
|
|
| 09 Jul 2013 04:01 AM |
I'm trying to add a section to the default linkedLeaderboard that changes the player's team when their WOs reach a certain value. I created an intValue and named it wipeLim and added it to Workspace. I changed its Value to 3. Here is what I changed in the leaderboard's script:
lines that have been added = **
function onHumanoidDied(humanoid, player) .....local stats = player:findFirstChild("leaderstats") .....local team = player:findFirstChild("TeamColor")** ..........if stats ~= nil then ...............local deaths = stats:findFirstChild("Wipeouts") ...............deaths.Value = deaths.Value + 1 ...............-- do short dance to try and find the killer ...............if deaths.Value == game.Workspace.wipeLim.Value then** ....................team = BrickColor.new("Bright blue")** ...............end** ...............local killer = getKillerOfHumanoidIfStillInGame(humanoid) ...............handleKillCount(humanoid, player) .....end end
It isnt working as it is right now. Could anyone help me out? Other than these lines in this function nothing has been changed in the script (i didnt post the whole thing, to save time). |
|
|
| Report Abuse |
|
WoIfz
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 28 |
|
| |
WoIfz
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 28 |
|
|
| 09 Jul 2013 04:14 AM |
| bump (if i'm totally wrong just give it to me strait guys) :l |
|
|
| Report Abuse |
|