Imagine you have custom water (just a NonCollide anchored transparent block)
How do I know if player entered the water and left it?
I don't think it'll be a good idea to loop every time with :GetPartBoundsInBox() and compare it with some table with name (PlayersInWater for example) and check if new player entered or left the water. It'll be too unoptimized.
So you have any ideas? I could use .Touched event to see that player entered the water, but how do I know he left it?

1 comment
Again it's not that good idea to loop over time.