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).
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.
I found this in models on ROBLOX, I hope this helps. Made by: Demonzombietoy
01 | function 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 |
15 | end |