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

How to detect if a part is colliding with another part?

Asked by
Valatos 166
8 years ago

So I'm making a placement system, but I can find a way to detect if another part is colliding with another. I've tried :GetTouchingParts() and :GetConnectedParts() I even tried mouse.Target.Name, but still the block is able to collide into another block

1 answer

Log in to vote
0
Answered by 8 years ago

You can use .Touched game.Workspace.Touched:connect(function(touch) if Touched:IsA("BasePart") then

end

end)

0
Yes, that would also trigger if placed next to it, right? Valatos 166 — 8y
0
This event only triggers when the player touched it, this is not really what I wanted :/ Valatos 166 — 8y
Ad

Answer this question