I am trying to help my friend with a menu for his airline group and I'm making a menu for him. I have the Menu GUI done but for whatever reason, I can't seem to make the GUI appear when you equip the tool. If you can help I'll be really thankful. I'm usually good at scripting but for some reason, I just can't seem to find the solution to this.
Current Code -
local tool = script.Parent
local player = game.Players.LocalPlayer
local menuGui = game.ServerStorage.MenuGui
tool.Equipped:connect(function()
local menuGuiCopy = menuGui:Clone()
menuGuiCopy.Parent = player.PlayerGui
end)
(I have the finished GUI in ServerStorage)

1 comment
Try put the UI in the tool and use Connect and not connect