Is there a way to detect when a part is underwater

Im trying to script a way to know if a part is currently underwater but i cant seem to find anything that works for my pourpouse i want it to be affected by waves but i cant find anything that works like that

What im trying to do is make these things spew out water when the water goes bellow them when the waves are high
image

1 Like

Hey there, you could try checking out region3

2 Likes

You probably shouldn’t use Region3, as it’s been deprecated for a while. Perhaps try Shapecasting (specifically Block Casting), at the Part’s CFrame & Size then see the material of the intersection.

  • (Make sure to have IgnoreWater in the RaycastParams set to false)