--This is a a script for JayKay, Hi JAYKAY LOL, ok this is the script to add cash onkill, the Leaderboard comes with the zombie so dont worry
--Thats all bye!




local Humanoid = script.Parent.Zombie 

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.Cash.Value = Leaderstats.Cash.Value + 5 -- This gives you 5 cash onkill.
Leaderstats.Spree.Value = Leaderstats.Spree.Value + 1 -- This changes the spree up by one, if you die, it goes back to Zero 

wait(0.1) 

script:remove() 

end 

end 

end 

end 

Humanoid.Died:connect(PwntX_X) 

