Then whats the point of what I just did? I can already detect map water but I need to detect brick water also.
brick water consists of two parts
1. A brick
2. A physical zone with the same dimensions and position as that brick, which is basically identical to map water except smaller
You can have physical zones without bricks too (such as map water or maps with low gravity)
try having it echo the id of whatever object the raycast hits, then doing .dump(); or .getclassname(); on it to see if it is getting the object you are looking for.