How to make text button appear when tool equipped

hello,
how would i make a text button appear when the tool is equipped, and make the text button disappear when tool is unequipped?

you should make a localscript for this

local YourTool = -- Tool Path here
local plr = game.Players.LocalPlayer

YourTool.Equipped:Connect(function()
local PlayerGui = plr.PlayerGui
PlayerGui.ScreenGui.Frame.Visible = true
end)

YourTool.Unequipped:Connect(function()
local PlayerGui = plr.PlayerGui
PlayerGui.ScreenGui.Frame.Visible = false
end)
2 Likes

thank you so much for the help

1 Like