local touches = script.Parent:GetTouchingParts()
print(#touches)
-- 0
How to make that it found objects inside it?
local touches = script.Parent:GetTouchingParts()
print(#touches)
-- 0
How to make that it found objects inside it?
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
:GetTouchingParts() returns parts that are intersecting, not adjacent to others.
^ and if the part itself has cancollide set to false, it'll return an empty table
Oh... It's bad.. But thx!
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
rule #1, don't be a jerk please thanx