-------< variables >-------- local part = script.Parent local p = game:GetService("Players") local gui = p.PlayerGui.Shop.ShopFrame -------< code >------------- part.Touched:Connect(function(hit) if gui.Visible == false then gui.Visible = true end end)
the error says that player gui is not a valid member of player (p in my case) any help?