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 touches another Part?

Asked by 2 years ago
Edited 2 years ago

My Question is how to detect if a Part collides / Touches another Part, i tried it with

mouse.Target

but it doesn't work so well, because it just search the Target. I tried .touched already and i can't figure out how to do this.

I'm new and i know that my english is not so well, but i hope you will understand. Thanks for every answer! ????

1 answer

Log in to vote
2
Answered by 2 years ago

hi Zahn,

mouse.Target is used if you want to check the object that your mouse is currently pointing towards.

Based on what you are trying to do, I think BasePart.Touched should work well enough for you. I don't know what you did wrong, but here is a helpful link about Detecting Collisions

https://developer.roblox.com/en-us/articles/detecting-collisions

0
And make sure it is unanchored. BasePart.Touched doesn't fire when anchored AProgrammR 398 — 2y
0
thank you very much! ZahnLol4 32 — 2y
Ad

Answer this question