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: Part onTouched Removal

Previous Thread :: Next Thread 
Felix2231 is not online. Felix2231
Joined: 29 Aug 2010
Total Posts: 528
17 Sep 2011 07:36 PM
How do I make a zombie's arm so that if it touches any part except the Baseplate then that part disappears?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
17 Sep 2011 07:48 PM
script.Parent.Touched:connect(function(h)
if h ~= nil then
if h.Name ~= "Base" and h.Name ~= script.Parent.Name then
h:remove()
end end end)

put that in a script in the arm of zombie
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
17 Sep 2011 07:52 PM
Create a script with Touched event in the arm that checks for Base and removes otherwise.

There's plenty of examples in Free Model Zombies.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
17 Sep 2011 07:54 PM
script.Parent.Touched:connect(function(h)
if h["Humanoid"] then
h:Remove()
end
end)
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