So I have a GUI that loads visible even though it isn't supposed to. It's from this script that it doesn't load invisible, although it did once when I changed the function from on click playing a function to on click being the function.
local Button = script.Parent local frame = script.Parent.Parent:WaitForChild("Shop") Button.MouseButton1Click:Connect(function() frame.Visible = true end)