With the exception of variable names and what's inside the function, this is copy-pasted from the devhub wiki.
local ore = script.Parent
function mineOre(player)
if player.Character:FindFirstChild("Pick") then
print "Pick found"
end
end
ore.MouseClick:Connect(mineOre)```
But when I run this script I get the error:* MouseClick is not a valid member of Part "Workspace.oreEmerald"*, which makes zero sense because MouseClick is a listed event from the wiki.
** You are now Level 44! **