What Do I Want To Achieve: The Gui To Disappear
What Have I Tried: Using Wait(), WaitForChild
local player = Players.LocalPlayer
local Players = game:GetService('Players')
local tool = script.Parent
local value = tool:WaitForChild('Value')
local playerGui = player.PlayerGui
local gui = playerGui:WaitForChild('Ammo')
local text = gui:WaitForChild('TextLabel')
script.Parent.Unequipped:Connect(function()
text.TextTransparency = 1
end)
script.Parent.Equipped:Connect(function()
text.TextTransparency = 0
end)
Currently no error messages coming up.
also btw i have another script counting and adding more value to the gui each time i click