--Variables
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
--Mining
mouse.Button1Down(function()
if mouse.Target == nil then return end
if mouse.Target == 'Rock' then
mouse.Target.Ore:remove()
end
end)
mouse.Button1Down:connect()
It will not remove the ore once i click.

8 comments
Output error:21:17:43.283 - Players.Player1.Backpack.PickAxe.PickAxeScript:6: attempt to call field 'Button1Down' (a userdata value)
At line 06 put mouse.Button1Down:connect(function()
It still will not work.
What is the output?
:Remove is deprecated also use :Destroy() instead
:Destroy still does not destroy the ore. It also doesn't show any errors in the output.
Remove line 7
still doesnt work