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)

4 comments
I need it to appear again when the character dies
ah nvm thx
I found a way through testing thx anyeays
Np, let me know if you need any help.