[v3!] TopbarPlus v3.0.0 | Construct intuitive topbar icons; customise them with themes, dropdowns, captions, labels and much more

@ForeverHD topbar sometimes doesn’t appear

Well I like to keep things in one place and also it would be nice for the icons to load up before the loading screen gets away

The menu you see on the left is a CoreGUI (that means GUI that is made by Roblox, not other developers). I am not really sure but I think it is not accessible with scripts outside Studio so I don’t think this would be possible.

Hey @ForeverHD

This issue is still not fixed on me.

Right, so could I modify the default Roblox inventory button in that case?

1 Like

I don’t really think you can. I don’t know how you managed to turn it off (I guess disabling the Backpack) but Roblox does not have many ways for us to customize it’s GUI. And when it does, it is catastrophe (they could have at least leave the tags from the old chat be, they worked good).

Did simple search; I think your case is similar to this one or this one - it is not possible.

Right, now assuming you can do this (brand new question), am I able to add a new TopbarButton to an existing Drop down area, assuming that it’s creating the new button from a different script?

I don’t get why this output is happening when I literally define “AdonisMenu” (check image 2)

If you give that container (actually still Icon) a name, you can get it in other script by that name. However, if you are still talking about the Roblox Menu, that one is not made by TopbarPlus so you cannot fetch it using the Icon module nor by yourself, as far as I know.

Documentation: setting the icon name, getting the icon.
You cannot fetch icons that were not assigned a name because all icons have default name “Widget”. Maybe you could get your custom icon place and then search in the parent for icon that has specific image or text?

It is possible the other script runs sooner than the one creating the icon.

You can use simple while loop to wait for it:

while not Icon.getIcon("AdonisMenu") do wait(1) end

Alright, will try that. Though I did do icon = nil repeat icon = Icon.getIcon("AdonisMenu") wait() until icon ~= nil or something like that earlier…

1 Like

That should also work but I don’t see it in your code.
Also take into conslusion the fact that waiting for the icon is gonna pause the whole script so the code bellow will be executed after the icon is found. If the icon is not going to be created then it can get into infinite loop.

Works a treat! Thank you very much! Sorry for the late reply.

1 Like

I have a issue with the topbar every time my charachter dies, the buttons duplicate

image
image

Put the Script in StarterPlayerScripts, not StarterCharacterScripts nor StarterGUI.

1 Like

@ForeverHD @Semir2006 topbar duplicate when putting script in StarterPlayerScripts but doesn’t with ReplicatedStorage, also sometimes topbar doesn’t work and i get error “Attempted to call require with invalid argument(s). - Client - Topbar Icons:7” local Icon = require(iconModule)

For the second error your code is required. I nor others can tell what the error is exactly just by this description. However when I think about it; it is really possible the iconModule is sometimes empty. That is - you have this code running on the client so the Icon module may not have been replicated at the time the script is run - do you use :FindFirstChild("Icon") or just ".Icon"? If so, change it to :WaitForChild("Icon")

About the first error I don’t know what to imagine under “topbar duplicate”. Do you have all icons twice? What exactly replicate?
When you put normal LocalScript inside ReplicatedStorage it does not run so you probably have two similar/same LocalScripts running somewhere else. I cannot think about other way it could replicate …

Also, I am not an official helper here :smile: (on the other hand I hope ForeverHD doesn’t mind me trying to help)

is there a way to make a dropdown icon not selectable?

Read the docs - if it exists, you’ll most likely find it there.

1 Like