lua – (ROBLOX) How would I make this repetitive loop cave code work for my mining game?

I'm working on a Mining Game on ROBLOX and I had suddenly gotten a really nice idea on how I'd implement fluids into my caves.
View full source