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 |