Ajw2000
|
  |
| Joined: 30 Jul 2008 |
| Total Posts: 295 |
|
|
| 16 Oct 2009 11:14 AM |
function grind(hit) if hit.Name == "Zombie" then wait(.1) local p = Instance.new("Part") p.Parent = game.Workspace p.Name = "Goop" p.BrickColor = BrickColor.new("Camo") p.Anchored = false p.formFactor = 2 p.TopSurface = 0 p.BottomSurface =0 p.Position = Vector3.new(56, 10, -38) p.Locked = true wait(.1) end end script.Parent.Touched:connect(grind)
------------------------------------------------ I need to control if 1 "Zombie" named brick hits the grinder then 1 goop comes out, if 5 hit it, then 5 goop comes out...can anyone help me? |
|
|
| Report Abuse |
|
|
Pady
|
  |
| Joined: 18 Nov 2007 |
| Total Posts: 1744 |
|
|
| 16 Oct 2009 11:58 AM |
function grind(hit) if hit.Parent.Name == "Zombie" then --parent of part wait(.1) hit.Parent:remove() --remove the zombie so it doesnt fire script again. local p = Instance.new("Part") p.Parent = game.Workspace p.Name = "Goop" p.BrickColor = BrickColor.new("Camo") p.Anchored = false p.formFactor = 2 p.TopSurface = 0 p.BottomSurface =0 p.Position = Vector3.new(56, 10, -38) p.Locked = true wait(.1) end end script.Parent.Touched:connect(grind)
|
|
|
| Report Abuse |
|
|
Ajw2000
|
  |
| Joined: 30 Jul 2008 |
| Total Posts: 295 |
|
|
| 16 Oct 2009 12:08 PM |
| Tyvm, but the zombies arent grouped yet, when they are I will re- add the hit.(parent) part(removing the parent of hit, kuz its just a bricks in the shape of a zombie right now) |
|
|
| Report Abuse |
|
|