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

How to track kills?

Asked by 9 years ago

How do I find the player who killed someone and add 1 to their kills in another script? Like say the leaderstats. Where are they and how do I access that specific player's leaderstats and his/her kills.

1 answer

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
9 years ago

When a player gets killed, they will ( if the weapon does it ) get an ObjectValue called 'creator' in the players Humanoid, the Value will be the killer. You need to check for when a player dies and locate that Value.

0
where do i find the value patch523 20 — 9y
0
never mind i under stand it patch523 20 — 9y
Ad

Answer this question