How would I ignore the water with raycasting

So I want to raycast a part that is in water however the .Instance property keeps returning “WaterDetection”. I have put Terrain in the blacklist params and set ignore water to true yet it isn’t doing anything.

Any help would be appreciated thanks :slight_smile:

This should help;

RaycastParams.new().IgnoreWater = true

Just replace RaycastParams.new() with your original raycasting params.