local Humanoid = script.Parent.Raider1 -- Or Zombie Or Whatever
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.KOs.Value = Leaderstats.KOs.Value + 1
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:Connect(PwntX_X)
I don't know what to do, the error says Died is not a valid member of Model

3 comments
It means that Humanoid is not a "Humanoid."
^
^