Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to detect if a Part touches another Part?

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

✓ Accepted answer

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

2 comments

0

And make sure it is unanchored. BasePart.Touched doesn't fire when anchored

0

thank you very much!

This discussion is preserved as it was. New answers, comments, and votes are closed.