Scripter support new scripter

So what I actually need to know is when you open the gui the other Gui you have opened Closes the other like this.

My current script:

Credits to: [GUILDS⚔️] Giant Simulator - Roblox

1 Like

You already achieved what you want…?

Simply check if the other GUI is open, if it is, then close it.

if Gui.Visible = true then
     Gui.Visible = false
end

*THIS IS AN EXAMPLE

I would probably do something around this:

local CurrentUi -- Whatever the current UI is

blah.MouseButton1Click:Connect(function()
	if CurrentUI ~= nil and CurrentUI ~= blah.Name then
    -- Close other Ui that is open (Insert your script)
 	end
	CurrentUI = blah.Name

-- Rest of UI code

end)

What would blah.Name be? @Darobbap

That would be the name of the UI that you want to set as the Current UI. blah in this case is just an example UI, you would change it the UI that you want to affect.

Thank you sir so much for helping me out.

1 Like