Detect if accessory is covering a certain position on face

I’m making a breathing system, where you can see the player’s misty breathing, but I want physics to apply to it, so if the player is wearing a mask from the catalog, you can’t see the breath.

I haven’t tried anything yet, but any tips are welcome.

Raycast from the head to the front of the head and see if it hits anything that is named “Mask” or however you wanna detect the instance, if you find it just stop whatever the breathing comes from (particles I’m guessing so just disable them or set the lifetime to 0).

Oh brilliant, cause I have no idea how to use raycasting :laughing: do you mind assisting me?

1 Like

I added a hyperlink in my post that pretty much explains how it works, if you need any more help let me know.