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
On line 3 you put namee is this meaning the players name?