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

How to track kills?

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

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.

2 comments

0

where do i find the value

0

never mind i under stand it

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