How can I detect if ive already gotten xp from a kill

I have it down where you get xp I just wanna make it so you cant keep shooting the dead player and keep getting xp. but once the player respawns you can kill them again and get xp.
heres the bit of code that gives xp
hittarget is the player you shoot

if target then
					local hittarget =	target:FindFirstChildOfClass("Humanoid")
					if hittarget then
						hittarget.Health = hittarget.Health - 13
					end
					
					if hittarget.Health <= 0 then
						
							player.leaderstats.XP.Value = player.leaderstats.XP.Value + 1
						
						
						
					end
					
				end

Check if the player is dead, and if it is not, give them the xp

You could check if the player is alive. Like this:

if target then
	local hittarget = target:FindFirstChildOfClass("Humanoid")

	if hittarget and hittarget.Health > 0 then
		hittarget.Health = hittarget.Health - 13

        if hittarget.Health <= 0 then
			player.leaderstats.XP.Value = player.leaderstats.XP.Value + 1		
		end
	end		
end

If you kill the player, it will give them XP and if you hit this player again, It would check if it’s still alive.