Terrain script help

I have a block that is a proximity prompt and when you hold it down all the way the block transparency goes to 1 and it’s in the ground so basically it’s a dig option but the part in the ground is not realistic so do you know how to make it where once ur done holding the proximity prompt the block minus the terrain so basically making a hole sorry bad explains

Take a look at the Documentation and check if something interests you. I personally found “Writing Voxels” the best option for you.