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