I know I can ignore terrain. But I only want to ignore the water. Is this possible? If so how would I do it?
I've tried researching it, but can't find anything about it. Thanks
I know I can ignore terrain. But I only want to ignore the water. Is this possible? If so how would I do it?
I've tried researching it, but can't find anything about it. Thanks
Ignore Water is the fourth parameter on FindPartOnRay, so if you simply set the fourth parameter to true you should be good.
https://developer.roblox.com/en-us/api-reference/function/Workspace/FindPartOnRay
maybe this will help, tried to see if i could find water in terrain, here is the 1 line script
if game.Workspace.Terrain == Enum.Material.Water then
hope this helps
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you very much! I had no idea... Guess I didn't look hard enough!