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
|
  |
| 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
|
  |
| 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 |
|
|