ok so, basically, the kill check doesnt work some 10% of the time, i dont know why though. the deaths work, but not the kills.
tag creation
local enemyplayer = game.Players:GetPlayerFromCharacter(hitPart.Parent)
if myteam ~= enemyplayer.Team then
local tag = Instance.new("ObjectValue")
tag.Value = player -- shooters player
tag.Name = "creator"
tag.Parent = humanoid -- the enemies humanoid
game:GetService("Debris"):AddItem(tag,.5) -- destroys tag after half a second
kill check
character.Humanoid.Died:Connect(function()
deaths.Value = deaths.Value + 1
local tag = character.Humanoid:FindFirstChild("creator")
if tag then
local plr = tag.Value
plr.leaderstats.Kills.Value = plr.leaderstats.Kills.Value + 1
