I am working on a script (in workspace) and it is supposed to give EXP to your player after you KO someone, but it doesn't work. Btw I am a new scripter so I am still learning.

local Humanoid = script.Parent:FindFirstChild(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.EXP.Value = Leaderstats.EXP.Value + 250
wait(0.1)
script:remove()
			end 
		end 
	end 
end 
Humanoid.Died:connect(PwntX_X)