local Tool = script.Parent local Gui= game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("MENU"):WaitForChild("Home") Tool.Equipped:Connect(function() Gui.Visible = true end) Tool.Unequipped:Connect(function() Gui.Visible = false end)
Instead of accessing the gui from the LocalPlayer, try to access it like this:
local Tool = script.Parent local Gui= game.StarterGui:WaitForChild("MENU"):WaitForChild("Home") Tool.Equipped:Connect(function() Gui.Visible = true end) Tool.Unequipped:Connect(function() Gui.Visible = false end)