I'm trying to make this when zombie gets kills it adds 8 heads to the leaderboard but its not working!!! please help
local Humanoid = script.Parent.Zombie -- 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.Heads.Value = Leaderstats.Heads.Value + 8
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)

5 comments
Why would it? A Zombie has a value inside of it that somehow has a leaderstats inside of it?
im confused i dont understand what ur saying
Your question is very confusing...Is this zombie a "Minion" to a certain player?
Does anyone notice that this is a Duplicate Question?
its a duplicate because the dude is giving me wrong answers on old one