In this script, I want it so that that when the Currency1 is selected, it will show the gui for Currency2 but make Currency1 invisible. What should I change here?
button = script.Parent
window = button.Parent
display = window.Currency1 -- Window = name of object to be opened/closed
function onClicked(GUI)
if display.Visible == true then --False = Closed
display.Visible = false
else
display.Visible = true --True = Open
end
end
script.Parent.MouseButton1Click:connect(onClicked)
