Is there a way to get non collide parts with the touched event ? or there a other event for this ?

I did that but it didn't detect the parts.

local P = script.Parent
P.Touched:connect(function()
if P.CanCollide == false then
	print("1")
else
	print("0")
end
end)

Thanks

2 comments

0

you forgot a end on your if statement

0

Oh yeah that was the problem thanks !