Why is thiis :GetTouchingParts - script printing the wrong thing?
What I want it to do is not print the name of what touched the part(s), if the part(s) that touched it has a certain name(see script)
Why isn't this working?
Any help is greatly appreciated!
for i,v in pairs(cloneModel:GetChildren()) do
if v.ClassName == "Union" or v.ClassName == "Part" then
local parts = v
v.Touched:Connect(function()
local touching = parts:GetTouchingParts()
for _,p in next, touching do
if p.Name ~= "Left Leg" or p.Name ~= "Right Leg" or p.Name ~= "Left Arm" or p.Name ~= "Right Leg" or p.Name ~= "Head" then
print(p.Name..' is touching '..parts.Name..'!')
end
end
print()
end)
end
end
