so im having a issue with gui but i had a idea off making 1 gui open while the previous 1 closed but all it does is close it and not open the one i want it to here is the code:
The issue is that Zocash is a child of script.Parent.Parent, therefore when disabling that GuiObject visibility, you also make Zocash invisible. For your script to work Zocash must be outside of script.Parent.Parent.
Sorry, I’m still super confused about what you’re trying to do xD Could you post an image of your GUIs and an explanation of what you want them to do?
local main = script.Parent
local tabBar = main.TabBar
local tabHolder = main.TabHolder
tabBar.Tab1Button.MouseButton1Click:Connect(function()
tabHolder.Tab2.Visible = false
tabHolder.Tab1.Visible = true
end)
tabBar.Tab2Button.MouseButton1Click:Connect(function()
tabHolder.Tab1.Visible = false
tabHolder.Tab2.Visible = true
end)
As for why your script is going wrong, it’s like I said you’re turning off the “Games” Frame, and as far as I can tell the Zobucks tab is a child of Games, so by doing so you also turn off the Zobucks tab.
Don’t use the file I sent you in your own project. It’s a ScreenGui, it’s meant to be put in StarterGui so you can see an example of how it could work.
No, you need to set up both buttons. And you still have the same issue of having one tab be inside the other tab. If you do that, you can’t open and close them independently. So don’t have Zobucks inside Games, assuming those are the two tabs.
Can you send the model? Just right click it in the Explorer window, click save to file, and then drag/drop the file into a comment here on the forums.