local Inventory = game.Players.LocalPlayer.PlayerGui:findFirstChild("Inventory")
local Shop = game.Players.LocalPlayer.PlayerGui:findFirstChild("Shop")
function openShop()
Inventory.Enabled = false
Shop.Enabled = true
end
script.Parent.Frame.Shop.MouseButton1Click:connect(openShop)
Inventory and Shop are both ScreenGuis
For some reason there's an error on the "Inventory.Enabled = false" and I'm not sure why.

2 comments
try enabling visible on a frame inside inventory
Tried it but unfortunately it didn't work