.Touched only detecting players?

Hello.

game.Workspace.ChildAdded:Connect(function(obj)
		obj.Touched:Connect(function(op)
			print("TOUCHD")
		end)
end)

For some reason, when I clone a part from ServerStorage via a ServerScript into workspace, use this code on it, so it detects it being added, Touched only fires when a players character touches it, not another part.

I’m not sure why… any help?

Touching other parts: https://gyazo.com/c24e907fab10d5ac62cfc56912029814.mp4

Touching player: https://gyazo.com/c24e907fab10d5ac62cfc56912029814.mp4

1 Like

The Touched event only fires as a result of physics movement, so it will not fire if the CFrame property was changed such that the part overlaps another part.
This also means that at least one of the involved parts must not be Anchored at the time of the collision.

Is there any other way to detect it with the method I am using?

You could use GetPartBoundsInBox. Although much more complicated, it works quite well and might be what you are looking for. You should look up some documentation on it or tutorials to find out how it works if you don’t already.

You posted twice the same video

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.