I have no idea on how to make a pickax script that will break a rock and add 1 to a leaderboard section for items? here is the code ive made so far. can someone help me?~~~~~~~~~~~~~~~~~
local tool = script.Parent
local scoop = tool.Scoop
local function OnTouch(partTouched)
local canHarvast = partTouched.Parent:FindFirstChild("CanHarvast")
if canHarvast then
print ("Found an item!")
end
end
scoop.Touched:Connect(OnTouch)
