**THERE ARE NO ERROS IN THE OUTPUT BTW **
player = game.Players.LocalPlayer player:WaitForChild("leaderstats") function change() print("Switching") local OtherEquip = script.Parent.Equipped local Equiped = script.Parent.Parent.IsEquiped local fall = Equiped.Text Equiped.Text = "True" OtherEquip = true print(fall) print(tostring(OtherEquip)) end function change2() print("Switching") local OtherEquip = script.Parent.Equipped local Equiped = script.Parent.Parent.IsEquiped local fall = Equiped.Text Equiped.Text = "False" OtherEquip.Value = false print(fall) print(tostring(OtherEquip)) end print('???') function Check() print('On?') local cl = game.ReplicatedStorage:FindFirstChild("WoodenPickaxe") local cl2=cl:Clone() local Pack = player.Backpack local T = script.Parent.Text local Item = script.Parent.Parent.Parent.Item2.IsEquiped local Item2 = script.Parent.Parent.Parent.Item3.IsEquiped local I = script.Parent.Parent.Parent.Item2.SomethingElse local I2 = script.Parent.Parent.Parent.Item3.SomethingElse local player = game:GetService("Players").LocalPlayer local Check = script.Parent.Parent.Parent.Parent.Parent.Crafting.Frame.Craft3.CraftButton:FindFirstChild('Wow') local Bought = script.Parent.HasBought local Bought2 = script.Parent.Parent.HasBought local EquipColor = BrickColor.new("Lime green") local EquipColor2 = EquipColor.Color local Equiped = script.Parent.Parent.IsEquiped local UnequipedColor = BrickColor.new("Really red") local UnequipedColor2 = UnequipedColor.Color local Sum = script.Parent.Parent.SomethingElse local find = player.Backpack:findFirstChild("WoodenAxe") local Ting = Bought.Value local Ting2 = Bought2.Text local OtherEquip = script.Parent.Equipped print('Start?') if Equiped.Text == "True" or OtherEquip.Value == true then print('1') script.Parent.BackgroundColor3 = EquipColor2 T = "Unequip" print('2') cl2.Parent = player.Backpack script.Parent.Parent.Parent.Parent.Parent.Background2.Melees.ImageLabel.Image = script.Parent.Parent.ImageLabel.Image print('3') Item.Text = "False" Item2.Text = "False" print('4') I.Text = "Yes" I2.Text = "Yes" change() elseif Check.Value == true and Equiped.Text == "True" or Bought.Value == true and Equiped.Text == "True" or OtherEquip.Value == true and Equiped.Text == "True" or Equiped.Text == "True" then script.Parent.Parent.Parent.Parent.Parent.Background2.Melees.ImageLabel.Image = script.Parent.Parent.Parent.Parent.Parent.Background2.Melees.NA.Value script.Parent.BackgroundColor3 = UnequipedColor2 script.Parent.Text = "Equip" player.Backpack:findFirstChild("WoodenPickaxe"):Destroy() I.Text = "No" I2.Text = "No" change2() end end script.Parent.MouseButton1Click:connect(Check)
-- The problem: Once it equips then it keeps giving you the tool when you click it, Its sapose to give it to you when clicked, then take it away when clicked again