|
| 17 Dec 2011 03:56 PM |
I have a brick spawner creating bricks called "Nep". I also have a brick that deletes the brick "Nep", but in this brick, it won't delete it. Here is the script in it.
bin = script.Parent
function onTouched(part) if part.Name == "Nep" then --fill in the name of the brick you want this to delete when it touches the parent of this script part:remove(0.01) end end
bin.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 17 Dec 2011 03:58 PM |
bin = script.Parent
function onTouched(part) if part.Name == "Nep" then part:Destroy() end end
bin.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2011 04:02 PM |
It didn't work, perhaps its the brick spawner? -------------------------------------------------------------
while true do
p = Instance.new ("Part") p.Parent = game.Workspace p.Position = script.Parent.Position p.Name = "Nep" wait(3)
end
|
|
|
| Report Abuse |
|
|
| |
|