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").
Sorry if this comes off a bit like a smart ass but it has to be said. It's not findFirstChild because findFirstChild IS DEPRECATED use FindFirstChild instead. NEVER USE DEPRECATED FUNCTIONS
Anways to answer your question you did script.Parent.Zombie if zombie is the name of a Humanoid object this should stay however if it isn't it should be script.Parent.Zombie.Humanoid