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
 

Delete brick

Previous Thread :: Next Thread 
ELETROG is not online. ELETROG
Joined: 11 Jul 2013
Total Posts: 604
22 Sep 2014 05:31 PM
Can someone translate this to a script:

If a part named "hello" touches parent, then delete
Report Abuse
Rapster2 is not online. Rapster2
Joined: 16 Oct 2009
Total Posts: 1865
22 Sep 2014 05:34 PM
local part = game.Workspace.Model:FindFirstChild("Hello")
local parent = part.Parent

parent.Touched:connect(function(hit)
if hit.Parent == part then
part:Destroy()
end
end

That should work
If it weren't for attorneys, we wouldn't need attorneys.
Report Abuse
SirNoobly is not online. SirNoobly
Joined: 01 Oct 2009
Total Posts: 253
22 Sep 2014 05:37 PM
or

script.Parent.Touched:connect(function(hit)
if hit.Name == "hello" then
hit:Destroy()
end
end)

I think.
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