--On lines 10 and 29 change Gold to the name of your money and Exp to the stat you wish to upgrade.


local Humanoid = script.Parent.Human -- Change Enemy to the name of your Monsters Humanoid
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.Gold.Value = Leaderstats.Gold.Value + 2500 --How Much Money Given
wait(0.1)
script:remove()
			end 
		end 
	end 
end 
Humanoid.Died:connect(PwntX_X) 




local Humanoid = script.Parent.Human -- Change Enemy to the name of your Monsters Humaniod
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.XP.Value = Leaderstats.XP.Value + 1500 --How Much XP Given
wait(0.1) 
script:remove()
			end 
		end 
	end 
end 
Humanoid.Died:connect(PwntX_X) 
