im trying to make a shop and the shop already open and closes but theres a item inside that I want to give a description when you click on that button. so I have a text button inside the frame called MainShop and the text button is named MainShop1 and I inserted a frame inside that so when you click on the button the frame will pop out then close when you click on it again but in the script theres a problem because when I click on the button, it turns invisible but I don't want the button to do tht? I only want the frame to open and close when you click on the button
can someone help?
heres the script v
mainShop1 = script.Parent.Parent.MainShop1 script.Parent.MouseButton1Click:connect(function() if mainShop1.Visible == false then mainShop1.Visible = true script.Parent.Text = "Close" else mainShop1.Visible = false script.Parent.Text = "Shop" end end)
