I have this statement inside a touched function:
if hit.Name ~= "Ball" then print(hit.Name) return end
So basically when hit.Name ~= "Ball" then the script ends, which states I have a problem. That is because the hit is detecting other parts, such as the baseplate.
However, I want my touched function to completely ignore all other parts, so that "Ball" is the only part detectable, without any other parts interfering.
Is this something to do with collision groups?

1 comment
Sorry I worded my question very badly but I found it was due to a debounce in the script. Thanks for your help.