Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why :GetTouchingParts() returns 0 every time?

Asked by
Shaehl -11
5 years ago
Edited by minikitkat 5 years ago
local touches = script.Parent:GetTouchingParts()
print(#touches)
    -- 0

How to make that it found objects inside it?

0
:GetTouchingParts() returns parts that are intersecting, not adjacent to others. INOOBE_YT 387 — 5y
0
^ and if the part itself has cancollide set to false, it'll return an empty table Rare_tendo 3000 — 5y
0
Oh... It's bad.. But thx! Shaehl -11 — 5y
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 User#19524 175 — 5y
0
rule #1, don't be a jerk please thanx minikitkat 687 — 5y

Answer this question