Now when i hold a tool i cant click any objects. I think its because of the mouse.Button1Down:connect(function() thing, but I do not know what needs to be in place of it.
mouse.Button1Down:connect(function() if game.Players.localPlayer.Backpack:FindFirstChild("Axe") and mouse.Target ~= nil and mouse.Target.Parent.Name == 'SmallTree1' and GetWood == true then local Wood = mouse.Target if (Wood.position - char.UpperTorso.position).magnitude < 10 then GetWood = false WC = plr.PlayerGui.WoodChopper WC.BG.Visible = true char.Humanoid.WalkSpeed = 0 ShowProgress('SmallTree1') char.Humanoid.WalkSpeed = 16 for i,v in pairs(Wood.Parent.Leaves:GetChildren()) do if v:IsA('Part') then v.Anchored = false end end