Alright, so basically I'm working on my newest game and I've come across some issues. The shops in the game are made of surface GUI's. I have it so when you click on "Purchase Credits" a list comes down, but I don't know how to make the list disappear.
local Button = script.Parent
local Small = script.Parent.Parent.Parent.Credits.Small
local Big = script.Parent.Parent.Parent.Credits.Big
local Opened = false
function onClickToOpen()
Opened = true
if (Opened == true) then
wait(0.5)
Small.Visible = true
wait(0.5)
Big.Visible = true
else
wait(0.5)
Big.Visible = false
wait(0.5)
Small.Visible = false
end
end
function onClickToClose()
Opened = false
end
if Opened == false and Button.MouseButton1Down:connect(onClickToOpen)then
wait(0)
end
if Opened == true and Button.MouseButton1Down:connect(onClickToClose)then
wait(0)
end
If you could help me out that'd be greatly appreciated!

2 comments
Thank you very much, it helped me a ton! I owe you one! (:
No problem!