To make it more clear, I want to print the name of every part that's touching a part with a touch listener at the same time. Here is my code:
game.Workspace.Part.Touched:Connect(function(a)
print(a.Name)
game.Workspace.Part.CanTouch = false
wait(0.5)
game.Workspace.Part.CanTouch = true
end)
This code prints out the same part over and over again. It could be because the touch listener only has 1 parameter to detect just 1 part. So must I detect collision another way to print out all of the colliding parts, like raycasting?

1 comment
Thanks a lot, I've never heard of that function before