generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: how do you detect when a player kills someone

Previous Thread :: Next Thread 
InnovationIsKey is not online. InnovationIsKey
Joined: 24 Mar 2013
Total Posts: 245
24 Jan 2014 08:05 PM
title
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
24 Jan 2014 08:06 PM
Make it in the killing weapon?
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
24 Jan 2014 08:14 PM
I think he is talking about how things like the linked swords work almost universally with all leaderboards

Its something in the leaderboard.
When someone dies, add 1 KO the player in the object value, the object value is located in the dead player, its called creator.
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
24 Jan 2014 08:19 PM
for _,v in pairs(game:GetService'Players':GetChildren())do
if v.Character.Humanoid.Health == 0 then print(v.Name..'has died') end
end
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
24 Jan 2014 08:32 PM
That detects when they die, not when someone kills them
Report Abuse
InnovationIsKey is not online. InnovationIsKey
Joined: 24 Mar 2013
Total Posts: 245
24 Jan 2014 10:11 PM
I may be wrong but I think there's a tag, and that's how the leaderboards do it.. hmm..
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
24 Jan 2014 10:13 PM
The usual method, the "creator" tag, which is an InstanceValue which's Value is the player that killed you, its name is "creator" and it is located inside the Humanoid. :P
Report Abuse
InnovationIsKey is not online. InnovationIsKey
Joined: 24 Mar 2013
Total Posts: 245
24 Jan 2014 10:20 PM
thanks saved me the time of looking into the leaderboard script
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
24 Jan 2014 10:29 PM
yahh!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image