It works when I set it to false but when I set it to true it doesn't work. No studio errors in output because technically there are none.
if game.StarterGui.Shop.Frame.Visible == true then script.Parent.Buy.Disabled = false print("something for testing") end --doesn't work
if game.StarterGui.Shop.Frame.Visible == false then script.Parent.Buy.Disabled = false print("something") end --works