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

How to find who killed a player?

Asked by 8 years ago

I am making a Ko and Wo leaderboard and know how to find wos but I just cant figure out how you can find who killed someone which means I can't make the ko column count correctly (it doesnt count anything at all).

2 answers

Log in to vote
1
Answered by 8 years ago

The thing is, no one actually "kills" someone. I don't have that much time so here is a quick summary: The way of counting kills is by "tagging" the player, within whatever script you use for your attack. Examples can be shown on the "linked sword". When a player dies due to this attack, the player that fired the attack is tagged, and that is put into further code into making a "Ko" system. It's easy with gears, could get tricky with other attacks. I'd love to help you out more, but your question seems more of a request. You have no script whatsoever, and want a Ko system handed to you, without even stating details.

Ad
Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

I found this in models on ROBLOX, I hope this helps. Made by: Demonzombietoy

01function onPlayerEntered(newPlayer)
02 
03    while true do
04        if newPlayer.Character ~= nil then break end
05        wait(5)
06    end
07 
08    local humanoid = newPlayer.Character.Humanoid
09 
10    humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end )
11 
12    newPlayer.Changed:connect(function(property) onPlayerRespawn(property, newPlayer) end )
13 
14 
15end
View all 99 lines...
0
Sorry, had to get a note here. Please stop reposting the same answer. We have an edit button. M39a9am3R 3210 — 8y
0
Sorry, I tried fixing it over and over, I thought I did something wrong with my text. Turns out I used the code block incorrectly. Akward12345 0 — 8y
0
Alright. I removed the note. It's just when you post, delete, repost an answer, if anyone is subscribed to the answer messages in our Discord channel it will just keep beeping people to check it. Don't be too worried about getting downvoted in the first few minutes of a post being up, just edit the answer. M39a9am3R 3210 — 8y

Answer this question