I don't know what the problem is in this script. I need it to open up a description of a item in my shop but I already have the shop button to open but I used same script to do the description for the item but it doesn't work, ive to tried to fiddle with it?
can some help me?
heres the original script v
1 2 mainShop = script.Parent.Parent.MainShop 3 script.Parent.MouseButton1Click:connect(function() 4 if mainShop.Visible == false then 5 mainShop.Visible = true 6 script.Parent.Text = "Close" 7 else 8 mainShop.Visible = false 9 script.Parent.Text = "Shop" 10 end 11 end)
well one you dont add numbers in that script anywhere... here you go.
mainShop=script.Parent.Parent.MainShop script.Parent.MouseButton1Click:connect(function() if mainShop.Visible == false then mainShop.Visible = true script.Parent.Text = "Close" else mainShop.Visible = false script.Parent.Text = "Shop" end end)