local touches = script.Parent:GetTouchingParts()
print(#touches)
	-- 0

How to make that it found objects inside it?

5 comments

0

:GetTouchingParts() returns parts that are intersecting, not adjacent to others.

0

^ and if the part itself has cancollide set to false, it'll return an empty table

0

Oh... It's bad.. But thx!

0

OP, for the non CanCollide parts, here is a script from developer forum. Warning: It's sort of hacky. Next time do not insult staff. https://devforum.roblox.com/t/simple-trick-to-make-gettouchingparts-work-with-non-cancollide-parts/177450/12

0

rule #1, don't be a jerk please thanx