Here's the script that was put in the stone


local function onMouseClick(player)

	if player.Character.WoodenPickaxe then
		script.Parent.Sound:Play()
		player.PlayerData:WaitForChild('Stone').Value = player.PlayerData:WaitForChild('Stone').Value + 10
	end

end
script.Parent.Clicker.MouseClick:connect(onMouseClick)

The script runs when the player click it with bare hands but not when they're holding the pickaxe

2 comments

0

try look for check for if it's equipt and not the pickaxe itself. "if player.Character.WoodenPickaxe.Equipped then"

0

No. if player.Character:FindFirstChild("WoodenPickaxe"). Also, you can't click clickdetectors with tools equipped.