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: will this kill script work?

Previous Thread :: Next Thread 
masterninja115 is not online. masterninja115
Joined: 27 Nov 2010
Total Posts: 1102
04 Jun 2013 09:03 PM
function onTouched(hit)
human = hit.Parent.FindFirstChild("Humanoid")
if human ~= nil then
human.Health = 0

end
end

script.Parent:connect(onTouched)
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
04 Jun 2013 09:09 PM
nope
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
04 Jun 2013 09:11 PM
It was close, though. Your connection line is a bit off.

script.Parent:connect(onTouched)
It should have some sort of event.
For example, when touched.

script.Parent.Touched:connect(onTouched)
Report Abuse
masterninja115 is not online. masterninja115
Joined: 27 Nov 2010
Total Posts: 1102
05 Jun 2013 12:12 AM
Thanks alot
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
05 Jun 2013 02:30 PM
Still wouldn't work...

:FindFirstChild()
Report Abuse
monster07 is not online. monster07
Joined: 19 Jul 2009
Total Posts: 533
05 Jun 2013 03:37 PM
Id make health -1 just incase
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