I have tired many times and made sure that all of the gui names are correct but it still does not work, please let me know what is wrong.
local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() player.PlayerGui.Shop.ScrollingFrame.Visible = true end)
Use player:WaitForChild("PlayerGui")
not player.PlayerGui
in line 4 because PlayerGui inside player loads kinda slow