Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Finding the killer help?

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

1 answer

On line 3 you put namee is this meaning the players name?

2 comments

0

Yes.

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.