Here's the script that was put in the stone
1 | local function onMouseClick(player) |
2 |
3 | if player.Character.WoodenPickaxe then |
4 | script.Parent.Sound:Play() |
5 | player.PlayerData:WaitForChild( 'Stone' ).Value = player.PlayerData:WaitForChild( 'Stone' ).Value + 10 |
6 | end |
7 |
8 | end |
9 | 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