--[[ http://prntscr.com/a7b4tr
http://prntscr.com/a8geq1
--Problem: When you equip the tool the gui dose not popup
---New Error: 14:09:15.828 - Players.Player.Backpack.WoodenPickaxe.LocalScript:14: bad argument #3 to 'Text' (string expected, got Object) --14:09:15.831 - Script 'Players.Player.Backpack.WoodenPickaxe.LocalScript', Line 14 --14:09:15.833 - Stack End
local Player = game.Players.LocalPlayer
local Durrability = Player:WaitForChild("PlayerGui"):WaitForChild("Durrability")
local Gui = Durrability:WaitForChild("Durrability"):WaitForChild("Background"):WaitForChild("DurVal")
local Gui2 = Durrability:WaitForChild("Durrability"):WaitForChild("Background"):WaitForChild("DurVal2")
local Gui3 = Durrability:WaitForChild("Durrability")
Item2 = Player.Backpack:WaitForChild('WoodenAxe')
Item = Item2:WaitForChild('CurrentDurability')
script.Parent.Equipped:connect(function()
wait(.1)
Gui3.Visible = true
Gui.Text = Item
Gui2.Text = Item
end)
script.Parent.UnEquipped:connect(function()
wait(.1)
Gui.Text = " "
Gui2.Text = " "
Gui3.Visible = false
end)
