local b=script.Parent.Zombie function PwntX_X()local y=b:findFirstChild("\099\114\101\097\116\111\114")if y~=nil then if y.Value~=nil then local b=y.Value:findFirstChild("\108\101\097\100\101\114\115\116\097\116\115")if b~=nil then b.Cash.Value=b.Cash.Value+5 b.Spree.Value=b.Spree.Value+1 wait(.1)script:remove()end end end end b.Died:connect(PwntX_X)
--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)
