Is it possible to detect if your camera is 'in' a brick? For example, I have this script that when your head touched and stops touching this 'water' brick, the script makes a 'water blur' Gui visible/invisible. Is it possible to have it run the script when the brick is 'inside' of it instead of the head?
In a localscript you could frequently check workspace.CurrentCamera.CoordinateFrame, which gives you the CFrame of the current camera. You can check its position with .p. If the brick you're working with is rotated, this function may be useful:
function PointInPart(point, part) point = part.CFrame:pointToObjectSpace(point) return math.abs(point.X) <= part.Size.X / 2 and math.abs(point.Y) <= part.Size.Y / 2 and math.abs(point.Z) <= part.Size.Z / 2 end
Use it like this:
cameraInPart = PointInPart(workspace.CurrentCamera.CoordinateFrame.p, partHere))
You could listen to changes to the Camera (using a Changed event), or just use a while loop to check the condition at regular intervals.
Your question was 'is this possible', my answer is yes, this is 100% possible.