Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Finding the killer help?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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

0
Yes. Operation_Meme 890 — 10y
0
I have a varible namee that I forgot to add there. But it still doesn't work. Operation_Meme 890 — 10y
Ad

Answer this question