So I have an Touched script. I need it when a player hits a block with a certain tool, that block will change to Transparency 1. Say the tool name is "Pickaxe", how can I check that the tool named "Pickaxe" is hitting the brick. I don't want the transparency to change if the player touches the brick, for example.

This is the code I tried. Not sure if it's even remotely correct.

local name = game.StarterPack.Pickaxe 

script.Parent.Touched:connect(function(hit)
if name == "Pickaxe" then
	script.Parent.Transparency = 1
	end
end)