Terrain editing through a script -Roblox – luau – Stack Overflow

So I have saw multiple games that have you with a pickaxe and you mine at the terrain and it slowly retracts but I have no idea how they do this …
View full source