local kills = game.Players.LocalPlayer.leaderstats.Kills
local KillObject = script.Parent
local OwnerObject = script.Parent.Owner
local function deathByFireball (hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(OwnerObject.Value) then
kills.Value = kills.Value + 1
end
end
KillObject.Touched:connect(deathByFireball)
This is in a localscript only because I tried to script it in a serverscrip but I always came up with the nil value for leaderstats (leaderstats is a folder)
