If i remove 'or "Barrier"' it works but when i add it everything is setting the script off.
local enabled = true
function onTouched(hit)
if enabled == true and
hit.Name == "Object" or "Barrier" then
enabled = false
script.Parent.Particles.Rate = 250
local Copy = script.Particles:Clone()
Copy.Parent = hit
Copy.Remover.Disabled = false
wait(0.3)
script.Parent.Particles.Rate = 0
enabled = true
end
end
Connection = script.Parent.Touched:Connect(onTouched)

3 comments
Everything in the script looks fine to me, is there any errors in the output?
Just found a problem tho, is the Particles inside the script or not? (Line 06 - Line 07)
Yes it all works fine, it only brakes when adding the or.