Delete Blocks

We need help with our game. We can place blocks but we need to delete them to.
We did try a script that allowed us to place and destroy blocks but on that script we couldent change the texture on the block.