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

What do you wish to achieve from this? Topbarplus performs additional checks within its UserInputService connections making it synonymous to ContextActionService.

How would you do the music label at the top?

And if you were to click on the shop button, are you able to add tweening to the opening and closing of the Shop UI? If so, where would you put that script?

Yes, you can toggle the gui with this:

local playergui = playerservice.LocalPlayer.PlayerGui
local gui = playergui:WaitForChild("ShopGui")

icon.deselected:Connect(function()
	gui.Frame.Visible = false
end)

icon.selected:Connect(function()
	gui.Frame.Visible = true
end)

You can also add Tweens if you want

I got it! Thank you so much for your help.

1 Like

someone knows how I do this I try and it doesn’t come out if it comes out but the Gui locks

You can find the coded example under StarterPlayerScripts at the Playground:

That specific icon is called ‘shopIcon’ and uses bindToggleItem to open/close the GUI.

something to do
image

name gui ??? where I put the configuration

Is this still worth using now even with the other methods

Just today, I ran into an issue where I reset, and respawn the button clones itself. And only one of the two buttons works. If you keep resetting it keeps cloning and I believe this isn’t intended behavior?

1 Like

Is the icon creator script on StarterPlayerScripts? And the other icon should open a gui?, if that the case, try disabling ResetOnSpawn on that gui

Yes it’s in StarterPlayerScripts, and it opens a gui which has ResetOnSpawn disabled

i don’t know whats causing this

Can you show us your code?

I re-added Icon and put the same code in, it works perfectly fine now

I believe I was just using an outdated version

1 Like

Question? How would I get the players region so the state they are in and display it? Like Region: Oregon

You can use LocalizationService:GetCountryRegionForPlayerAsync() to get the country code,
then you can use icon:setLabel() and put the country code or the country flag

You can use the code on this tutorial to get the country flag:
Convert Player Region ID into the associated Flag Emoji - DevForum | Roblox

2 Likes

How do I touch the button when I open it, a sound sounds

You can use SoundService for this:

local sservice = game:GetService("SoundService")
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://AudioId"

icon.deselected:Connect(function()
	sservice:PlayLocalSound(sound)
end)

icon.selected:Connect(function()
	sservice:PlayLocalSound(sound)
end)

I did or how I put it but the button does not come out