Let’s just say I have two buttons that each open two different frames. I click on one button and one frame appears. I click on the next button and another frame appears. But both frames are still visible. So how can I close a frame when I open up another frame?
You have to create some sort of tab system which would connect the UI and tell each other which frames are associated with which buttons and what frames to close when those buttons are pressed
local frame1, button1
local frame2, button2
button1.Activated:Connect(function()
frame2.Visible = false
frame1.Visible = true
end)
button2.Activated:Connect(function()
frame2.Visible = true
frame1.Visible = false
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.