Part Position Detection

I need help with a game I’m making. I need a detector that runs a script when it detects a part in it like this:

[Detector Part] → [Part]
facing that way

sort of like the Minecraft observer.
Any help will be appreciated :smiley:

You can fire a raycast from the front of the detector. If it hits a part, you can use RaycastResult.Normal to check the direction of the hit part.

2 Likes

Here you go!

2 Likes

Thanks! This helped me a lot! I’ll definitely credit you in the game if you want :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.