Im trying to make the proximity prompt show and trigger when the axe is equipped, its giving me an error tho. If you can solved this I would appreciate your time!
-- Variables
local SS = game:GetService("ServerStorage")
local WS = game:GetService("Workspace")
local Tree = script.Parent.Parent
local Stump = script.Parent
local PP = Stump.ChopTree
PP.Triggered:Connect(function(player)
local Axe = player.Backpack:FindFirstChild("Axe")
Axe.Equipped:Connect(function()
player.leaderstats.Wood.Value += 1
end)
end)