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: Kill script on touch?

Previous Thread :: Next Thread 
Haxeh is not online. Haxeh
Joined: 02 Jul 2012
Total Posts: 541
16 Jul 2012 03:06 AM
Help?
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
16 Jul 2012 03:09 AM
jUST USE freem models
Report Abuse
Haxeh is not online. Haxeh
Joined: 02 Jul 2012
Total Posts: 541
16 Jul 2012 03:11 AM
@Thedeathmaster01 Hell no.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
16 Jul 2012 05:05 AM
script.Parent.Touched:connect(function(part)
if part.Parent:findFirstChild("Humanoid") then
part.Parent:findFirstChild("Humanoid").Health = 0
end
end)
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
16 Jul 2012 05:15 AM
As triston said:

script.Parent.Touched:connect(function(hit)
local Humanoid = hit.Parent and hit.Parent:FindFirstChild("Humanoid")
if Humanoid then
Humanoid.Health = 0
end
end)
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
16 Jul 2012 05:30 AM
@Haxeh;
If you don't know how to script then just use free models and learn from them.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
Haxeh is not online. Haxeh
Joined: 02 Jul 2012
Total Posts: 541
16 Jul 2012 05:31 AM
Thanks for helping.
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