The leaderstats are working, it is this part of the script that is not:
local Humanoid = script.Parent.Zombie -- Or Zombie Or Whatever
function PwntX_X()
print("1")
local tag = Humanoid:findFirstChild("creator")
print("2")
if tag ~= nil then
print("3")
if tag.Value ~= nil then
print("4")
local Leaderstats = tag.Value:findFirstChild("leaderstats")
print("5")
if Leaderstats ~= nil then
print("6")
Leaderstats.Cash.Value = Leaderstats.Cash.Value + 5
print("7")
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)
It breaks between print("2") and print("3").

3 comments
Did you get anything from the output, or did it just stop all together?
So I think the problem is that tag = nil. So we need to get tag~= nil.
The problem is most likely the weapon not tagging the humanoid correctly.