seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
|
| 19 Oct 2014 09:24 PM |
function handleKillCount(humanoid, player) local killer = getKillerOfHumanoidIfStillInGame(humanoid) local rep = game:GetService("ReplicatedStorage") local event = rep:WaitForChild("RemoteEvent") if killer ~= nil then local stats = killer:findFirstChild("leaderstats") if stats ~= nil then local kills = stats:findFirstChild("KOs") if killer ~= player then kills.Value = kills.Value + 1 event:FireClient(killer,"KILL") end end end for i,v in pairs(humanoid:GetChildren()) do if v.Name == "creator" and v.Value ~= killer then if v.Value ~= nil then if v.Value ~= nil then local helpers = v.Value local stats = helpers.leaderstats if stats ~= nil then stats.Assist.Value = stats.Assist.Value + 1 event:FireClient(helpers,"ASSIST") end end end end end end
were it is awarding everyone wrong is "stats.Assist.Value = stats.Assist.Value + 1" it gives the player the amount of tags he put in to the person he helped kill. Is there a way to fix this?
Thanks - seliso the frog |
|
|
| Report Abuse |
|
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
| |
seliso
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6443 |
|
| |