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

7 comments
pro scripter
who ?
You know you never wrote anything inside of the function lol, check his video and see if he wrote anything inside of this function(he most likely did)
And when asking questions tell us what's supposed to happen
Theres literally nothing happening in the script
and he did not put anything in the fonstion brackers
pls help