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: Why doesn't this work? 200RB reward

Previous Thread :: Next Thread 
wasbear82 is not online. wasbear82
Joined: 05 Mar 2009
Total Posts: 15
24 Feb 2014 12:50 PM
function onTouched(hit)
if hit.Name == "What ever" then
hit:Remove()
end
end
connection = script.Parent.Touched:connect(onTouched)


I want the script to remove only the parts with a special name.
First one to fix it get 200 Robux =D
Report Abuse
Ultraw is online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
24 Feb 2014 12:53 PM
script.Parent.Touched:connect(function(hit)
if hit.Name == "Partnamehere" then
hit:Destroy()
end)
Report Abuse
Ultraw is online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
24 Feb 2014 12:54 PM
end
end)

sorry
Report Abuse
wasbear82 is not online. wasbear82
Joined: 05 Mar 2009
Total Posts: 15
24 Feb 2014 12:54 PM
ill test it =D
Report Abuse
wasbear82 is not online. wasbear82
Joined: 05 Mar 2009
Total Posts: 15
24 Feb 2014 12:57 PM
It works ty i will pay u nou
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