spawn(function()
script.Parent.Touched:Connect(function(hit)
local NoDmg = {"hellericc","DummyIO"}
for i,v in pairs(NoDmg)do
if hit.Parent.name == v then
print(v)
part.CanCollide = false
else
hit.Parent:Remove()
print(hit)
end
end
end)
end)
it kills me as well I tried to do just if hit = v but then it doesn't execute else

2 comments
Dont use spawn. Try that
i tried that but it still doesn't work