I'm trying to make a tool that allows you to insert models into a game. I want the GUI to enable/disable on equip or unequip instead of destroying it as it allows you to save the text you already typed into it.
local tool = script.Parent tool.Equipped:Connect(function(plr) print("equipped") game.Players.LocalPlayer.PlayerGui:WaitForChild("ModelInsertingGui").Enabled = true end) tool.Unequipped:Connect(function(plr) print("unequipped") game.Players.LocalPlayer.PlayerGui:WaitForChild("ModelInsertingGui").Enabled = false end)
I would just make the gui transparency = 1 when unequipped and then when you equip it make the gui transparency = 0