I followed alvinblox on his sword fighting game series all parts worked well but the new part 5 in which he teaches how to make a shop gui, the button is not working. there are no errors or warnings, pls check the script (the mainframe on which the swords and tools will show up is supposed to get visible)
shopButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end