I've recently got this script and i want to make the text button be invisible after you clicked the text button, and when the player dies i want it to appear again.
local player = game.Players.LocalPlayer local tool = game.ReplicatedStorage.Sword script.Parent.MouseButton1Down:connect(function() if player:FindFirstChild("Backpack") then tool:Clone().Parent = player.Backpack end end)
local player = game.Players.LocalPlayer local tool = game.ReplicatedStorage.Sword script.Parent.MouseButton1Down:connect(function() if player:FindFirstChild("Backpack") then tool:Clone().Parent = player.Backpack script.Parent.Text = "" --Make sure to find the gui text here. end end)