Hello, so I want people to be able to dig canals in my game, but if they’re trying to dig near water, instead of replacing where they click with air, I want to replace it with water, to simulate water flowing to the empty space.
Mainly I just want to know how I can figure out if where they click has a direct access to a water source, to see if water should generate rather than air.
Create a part, this will be the detection part, this has to be a big sphere, make it transparent (.5 transparency for testing), anchored, CanCollide off, CanQuery off
Have an area in the script which checks which parts touch the water