VitimanA
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 869 |
|
|
| 04 Feb 2012 09:39 PM |
c = script.Parent.Parent
function onTouched(hit) if hit.Name == "MASTER" then print("Touched") end
bricks = {"Pellet"} for i = 1, #bricks do c:findFirstChild(bricks[i]).Touched:connect(onTouched) end
-- i dont know whats wrong with it. it does print touched
|
|
|
| Report Abuse |
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 04 Feb 2012 09:45 PM |
c = script.Parent.Parent
function onTouched(hit) if hit.Name == "MASTER" then print("Touched") end end
bricks = {"Pellet"} for i=1, #bricks do c:findFirstChild(bricks[i]).Touched:connect(onTouched) end
|
|
|
| Report Abuse |
|