of     1   

Blade3rd
#709731Saturday, April 05, 2008 2:04 AM GMT

function onTouch(part) if part.Name == "wall-west" then script.Parent.Parent:Remove() explosion = Instance.new("Explosion") explosion.Position = script.Parent.Position else local human = part.Parent:findFirstChild("troop") if (human == nil) then return end human.Health=0 end script.Parent.Touched:connect(onTouch) I dont' get the issue. If brick collides with wall, it blows up. If it collides with a person, it kills them.
Blade3rd
#716610Sunday, April 06, 2008 12:16 AM GMT

Really, it seems that it should work.
Chaosemerald
#717326Sunday, April 06, 2008 2:09 AM GMT

function onTouch(part) -- capitalize, "on" if part.Name == "wall-west" then script.Parent.Parent:Remove() --dont remove the parent, it stops the script explosion = Instance.new("Explosion") explosion.Position = script.Parent.Position else --i havent seen this command, it might have nothing to do with this script local human = part.Parent:findFirstChild("troop") if (human == nil) then return end human.Health=0 --humanoid not human end script.Parent.Touched:connect(onTouch) --try putting end after the OnTouch hope i helped, i tried my best
Rhino1004
Top 100 Poster
#717720Sunday, April 06, 2008 3:08 AM GMT

function onTouch(part) if part.Name == "wall-west" then explosion = Instance.new("Explosion") explosion.Position = script.Parent.Position script.Parent.Parent:remove() elseif part.Name ~= "wall-west" then local human = part.Parent:findFirstChild("troop") if (human == nil) then return end human.Health = 0 end script.Parent.Touched:connect(onTouch) ---------------------------- Also, capitalization doesn't matter when it comes to the function, Chaos. § Rhino1004 §

    of     1