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: Get the killer of a humanoid

Previous Thread :: Next Thread 
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
14 Dec 2013 01:00 PM
[ Content Deleted ]
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
14 Dec 2013 01:14 PM
[ Content Deleted ]
Report Abuse
MattIsAwsomeLol is not online. MattIsAwsomeLol
Joined: 20 Oct 2013
Total Posts: 38
14 Dec 2013 01:17 PM
yourvariable.Humanoid:findFirstChild("creator")

Let me see your script so I can fix it.
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
14 Dec 2013 01:21 PM
[ Content Deleted ]
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
14 Dec 2013 01:25 PM
[ Content Deleted ]
Report Abuse
MattIsAwsomeLol is not online. MattIsAwsomeLol
Joined: 20 Oct 2013
Total Posts: 38
14 Dec 2013 01:28 PM
local Humanoid = script.Parent.Humanoid
function Death()
local Killer = Humanoid:findFirstChild("creator")
if Killer ~= nil then
Killer.leaderstats["Kills"].Value = Killer.leaderstats["Kills"].Value + 1
end
wait(0.1)
script:remove()
end
Humanoid.Died:connect(Death)

--Just change of what will happen to the Killer
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
14 Dec 2013 01:38 PM
^
leaderstats isn't in creator, and why are removing the script?
Report Abuse
MattIsAwsomeLol is not online. MattIsAwsomeLol
Joined: 20 Oct 2013
Total Posts: 38
14 Dec 2013 01:39 PM
*Facepalm*
Report Abuse
MattIsAwsomeLol is not online. MattIsAwsomeLol
Joined: 20 Oct 2013
Total Posts: 38
14 Dec 2013 01:39 PM
*Facepalm*
1. The creator is getting the player
2. It's still gonna stay in the player when RESPAWNED or else it will overload and you'll get like 30+ kills
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
14 Dec 2013 01:42 PM
creator does not stay in your character when you respawn.
Report Abuse
MattIsAwsomeLol is not online. MattIsAwsomeLol
Joined: 20 Oct 2013
Total Posts: 38
14 Dec 2013 01:52 PM
creator, it is the PLAYER, ITS NOT IN THE PLAYER THAT DIED
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