I wanna find the killer of the person who got killed, but idk how to script one. Here what I tried:
function onHumanoidDied(humanoid, player)
namee = player.Name
wait()
if game.Workspace.namee.Humanoid.Health == 0 then
local killer = getKillerOfHumanoidIfStillInGame(humanoid)
local killerstat killer:GetPlayerFromCharacter()
killerstat.leaderstats.Bounty = killerstat.leaderstats.Bounty + 100
end
end

2 comments
Yes.
I have a varible namee that I forgot to add there. But it still doesn't work.