of     1   

Jetskiis
#228115405Sunday, November 26, 2017 10:43 PM GMT

Kills are not going into the leaderboard while deaths are. I'm using a custom made tool to allow players to kill other players function onHumanoidDied(humanoid, player) local stats = player:findFirstChild("leaderstats") if stats ~= nil then local deaths = stats:findFirstChild("Wipeouts") deaths.Value = deaths.Value + 1 function handleKillCount(humanoid, player) local killer = getKillerOfHumanoidIfStillInGame(humanoid) 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 else kills.Value = kills.Value - 1 end end end end
AsharKYT
#228116434Sunday, November 26, 2017 10:58 PM GMT

LOL! you don't even have BC..... I think you failed pretty bad trying to lie....
Jetskiis
#228116519Sunday, November 26, 2017 10:59 PM GMT

I can pay via buying a t-shirt y,know? Haters will be considered free bumpers.
Scrippa
#228116853Sunday, November 26, 2017 11:03 PM GMT

@Ashar stop being idiot
Jetskiis
#228117688Sunday, November 26, 2017 11:15 PM GMT

bump
Jetskiis
#228117979Sunday, November 26, 2017 11:20 PM GMT

b1
sweg2hipALT
#228118347Sunday, November 26, 2017 11:27 PM GMT

Got Discordee? add me: GodHOLINALILIUS#9156 lol ik.
Jetskiis
#228119102Sunday, November 26, 2017 11:41 PM GMT

? Why would we need to use#######d?
Jetskiis
#228120070Sunday, November 26, 2017 11:57 PM GMT

b
Jetskiis
#228123153Monday, November 27, 2017 12:40 AM GMT

b1
TheFatBurg3r
#228123760Monday, November 27, 2017 12:50 AM GMT

the handleKillCount function is inside the onHumanoidDied function
Jetskiis
#228124347Monday, November 27, 2017 12:59 AM GMT

So I should just put it inside ?
TheFatBurg3r
#228125046Monday, November 27, 2017 1:10 AM GMT

pretty much you just have to add an end to the first function function onHumanoidDied(humanoid, player) local stats = player:findFirstChild("leaderstats") if stats ~= nil then local deaths = stats:findFirstChild("Wipeouts") deaths.Value = deaths.Value + 1 end -- you forgot these two ends end function handleKillCount(humanoid, player) local killer = getKillerOfHumanoidIfStillInGame(humanoid) 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 else kills.Value = kills.Value - 1 end end end end
Jetskiis
#228125144Monday, November 27, 2017 1:11 AM GMT

The wipeouts are working but KO's arent :/
TheFatBurg3r
#228125460Monday, November 27, 2017 1:17 AM GMT

getKillerOfHumanoidIfStillInGame() may I see how this function works?
Jetskiis
#228125896Monday, November 27, 2017 1:24 AM GMT

Full script with some minor edits i made Wipeouts work as intended but Knockouts don't work whatsoever when I kill someone with my revolver i have beta=false function onHumanoidDied(humanoid, player) local stats = player:findFirstChild("leaderstats") if stats ~= nil then local deaths = stats:findFirstChild("Wipeouts") deaths.Value = deaths.Value + 1 local killer = getKillerOfHumanoidIfStillInGame(humanoid) handleKillCount(humanoid, player) end end function onPlayerRespawn(property, player) if property == "Character" and player.Character ~= nil then local humanoid = player.Character.Humanoid local p = player local h = humanoid humanoid.Died:connect(function() onHumanoidDied(h, p) end ) end end function getKillerOfHumanoidIfStillInGame(humanoid) -- check for kill tag on humanoid - may be more than one - todo: deal with this local tag = humanoid:findFirstChild("creator") -- find player with name on tag if tag ~= nil then local killer = tag.Value if killer.Parent ~= nil then -- killer still in game return killer end end return nil end function handleKillCount(humanoid, player) local killer = getKillerOfHumanoidIfStillInGame(humanoid) 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 else kills.Value = kills.Value - 1 end end end end function onPlayerEntered(newPlayer) if beta == true then local stats = Instance.new("IntValue") stats.Name = "leaderstats" local captures = Instance.new("IntValue") captures.Name = "Captures" captures.Value = 0 captures.Parent = stats while true do if newPlayer.Character ~= nil then break end wait(5) end stats.Parent = newPlayer else local stats = Instance.new("IntValue") stats.Name = "leaderstats" local kills = Instance.new("IntValue") kills.Name = "KOs" kills.Value = 0 local deaths = Instance.new("IntValue") deaths.Name = "Wipeouts" deaths.Value = 0 kills.Parent = stats deaths.Parent = stats while true do if newPlayer.Character ~= nil then break end wait(5) end local humanoid = newPlayer.Character.Humanoid humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end ) -- start to listen for new humanoid newPlayer.Changed:connect(function(property) onPlayerRespawn(property, newPlayer) end ) stats.Parent = newPlayer end end
Chronomaton
#228128010Monday, November 27, 2017 2:00 AM GMT

######### # don't have BC, and yet I can still afford to get some ROBUX.

    of     1