TopbarPlus v2.9.1 | Construct intuitive topbar icons; customise them with themes, dropdowns, captions, labels and much more

Update January 19th 2024
v3 will be released in a few days including an entire re-write of the codebase, support for the new Roblox topbar, new menus, new dropdowns, new optimizations, and more. If you’d like to play around with a pre-release: TopbarPlus v2.9.1 | Construct intuitive topbar icons; customise them with themes, dropdowns, captions, labels and much more - #1039 by ForeverHD

TopbarPlus

:floppy_disk: Source Code | :open_book: Documentation | :ocean: Playground

Construct dynamic and intuitive topbar icons. Enhance the appearance and behaviour of these icons with features such as themes, dropdowns and menus.

-- This assumes you place the TopbarPlus module (called 'Icon') under ReplicatedStorage
local Icon = require(game:GetService("ReplicatedStorage").Icon)

-- Here we construct a simple icon
Icon.new()
	:setImage(6326373239)
	:setLabel("Nanoblox")
-- This retrieves the theme module under Icon
local iconModule = game:GetService("ReplicatedStorage").Icon
local Icon = require(iconModule)
local Themes = require(iconModule.Themes)

-- Here we utilise the many other icon methods. You can view all of them at the docs.
Icon.new()
	:setImage(6326373239)
	:setLabel("Nanoblox")
	:setCaption("Nanoblox Caption")
	:setTip("Open Nanoblox Panel (v)")
	:bindToggleKey(Enum.KeyCode.V)
	:bindToggleItem(nanobloxFrame)
	:setProperty("deselectWhenOtherIconSelected", false)
	:set("iconFont", Enum.Font.GothamSemibold)
	:setRight()
	:notify()
	:setTheme(Themes.YourThemeName)
	:bindEvent("selected", function(icon)
		print("selected!")
	end)
	:bindEvent("deselected", function(icon)
		print("deselected!")
	end)
	:setDropdown({
		Icon.new()
			:setLabel("Item 1")
		,
		Icon.new()
			:setLabel("Item 2")
		,
		Icon.new()
			:setLabel("Item 3")
		,
		Icon.new()
			:setLabel("Item 4")
		,
	})

:rocket: Features

features example REDUCED


:sparkles: What’s new


:clapper: Get Started


:package: Installation


:bulb: API


:iphone: Tutorial

There is no v3 tutorial… yet! If you’d like to make one to be featured here, pop me a message @ForeverHD :happy3:

Credit

Big thanks to these people for their resources and contributions:


Final

TopbarPlus is free and open source! You’re welcome to use and modify this for any of your projects. Credit back to this thread is greatly appreciated although I won’t send the popo after you if you don’t. :policeman:

I won’t be able to respond to all questions, however I pinky-promise that I’ll read your comments. We’ve put hundreds of hours into this resource so its always a joy to hear your feedback!

That’s all amigos, enjoy :pineapple:

1237 Likes
Roblox like UI buttons
Kit Hub | "The Better ROBLOX Toolbox"
How do I make topbar text?
How do I make a button in
Fakejeffret Games game Credits
SFS | Cafe & Restaurant Order System
How can i make a gui like this:
TopbarPlus leaderstats
GUI Support, GUI Buttons
How would i make icons like this?
Obby Virtual! [ALPHA]
Baums Admin v.2 - Chat Commands!
What is the word for this
How to create custom chat button?
Roblox UI size Troubles. [TOP BAR]
Do you know how to make a Cash GUI using Topbarplus V2
How do I get a GUI to look like this?
CountryBalls RP [In a Huge Way]
Freecam+ | Freecam with mobile support, and more customizability
How to make roblox TopBar GUI’s
Fps Counter For TopBarPlus
How do i place gui next to hp bar?
SFS | Banking & Economy System
99% Fail - Updates and Credit
A Guide to CorePanel
Chat with Voice Developer Beta
Best way to make buttons next to chat and menu button
99% Fail Impossible Obby - Credit
ICYMI: Experience controls test starting November 20!
Making a “chat” styled button
Roblox's New TopBar GUI Doesn't Match With TopBarPlus Icons
How do you make TopBar?
Need help making cash display with topbar plus
Topgui+ Module not working as expected
TopbarPlus v2 | Construct intuitive topbar icons | Question
How can I make such a button next to the chat button?
Identical Gui to CoreGui?
How do I know when the chat button is clicked?
Custom leaderboard?
SimpleTopbar | Easy and Simple top bar system (closed for development)
Shadow Mode: Anonymous Moderating Tool
Shadow Mode: Anonymous Moderating Tool
Roblox Menu Remake | Answering: What can and can't developers do on Roblox?
Topbar+ v1 (deprecated) | Add additional functionality and themes to your topbar
Topbar+ v1 (deprecated) | Add additional functionality and themes to your topbar
No Title Game - Credits
How can I add a button to the Roblox topbar GUI?
Good Modules to Add
Social Chat v2 | Roblox's #1 Open-Sourced chatting resource
How to I add a GUI to the top of the screen similar to the chat button in roblox?
TopbarPlus Errors
My settings button in UI scales with device's screen
Obby Creator - Credits
Topbar Invite Friends
Anyone know how to add these additional settings in the top hand bar?
Studio Beta for Experience Controls Available Now
Why is this simple code not working?
ICYMI: Experience controls test starting November 20!
Inconcinnity Credits
TopBarPlus multiple buttons bug
AudioDeviceInput Issues
How can I add buttons to the TopBar?
How can I add buttons to the TopBar?
How to use PackageLinks for product/asset based items?
Magic Fighting Simulator - Credits
Make ui buttons styled the same as roblox ui style
How to add more ui inside the topbar ui
[VIDEO] Getting Started With TopbarPlus - Add Icons, Dropdowns, Menus and more to your experience
Better Chat V3 | Feature-rich custom chat with replies, rich text, message editing, and more!
Experiencia Plaza de las Navidillas - Información
What can I do to fix it? TopBarPlus problem
How to match the default Roblox CoreGui properties?
Oscars Polygon Update Log
Attributions for Experiences
How to disable roblox ingame menu?
How would I go about creating something like this
Obby Virtual! [ALPHA]
Topbar+ v1 (deprecated) | Add additional functionality and themes to your topbar
How to add a UI inside the Topbar UI
Any way to make a topbar without using Topbar module
In Game Avatar Editor v2
How do i move gui next to chat box
How do i move gui next to chat box
GUI similar to chat
Obby UI Feedback
In Game Avatar Editor v2
Project Delta Credits
Roblox UI size Troubles. [TOP BAR]
Copy roblox's gui and make another one beside it
How to do Open a Gui Above Default Roblox UI
Experiencia Información | Grupo Español
Roblox three dots user interface information
How to make a custom roblox gui?
RoPlay - Update Log & Attributions
Custom Topbar Buttons Module - Version 4.0.1
Social Chat | Enhance your experience with spectacular social chat features!
Topbar+ v1 (deprecated) | Add additional functionality and themes to your topbar
Part Painting System!
Bug when making round system (Topbar+ Icons)
How would I make a GUI that looks like Roblox?
How do we make buttons near to chat button?
Topbar+ v1 (deprecated) | Add additional functionality and themes to your topbar
How to put a text label on the TopBar
How to put a text label on the TopBar
Freecam+ | Freecam with mobile support, and more customizability
How To Make GUI Next to The Chat Icon
PLS PLAY - Update Log & Attributions
How would I be able to stop the color from changing after deselecting?
Need help with creating buttons located on top of the leaderboard
Do you know how to make a sprint button using TopbarPlus V2?
Settings button located next to the chat
Add an extra button
Is there an easier way to do this?
Roblox LUA Module [ASK]
Feedback on new gui system
Customizable FOV Changer
Outside | Credits
How to make buttons like these? - look at screenshot

Amazing to see a second version to this! Definitely going to try this out!

44 Likes

The new horizontal menus look fantastic! Thank you for keeping this fantastic resource fresh!

40 Likes

I absolutely loved the first version of TopbarPlus and have used it on numerous projects. This second iteration of it seems even more fantastic, can’t wait to use it on my future projects! Keep up the good work.

33 Likes

This is amazing! Such a huge improvement…

27 Likes

Amazing! It’s Looks Very Good! I’m Gonna Try This Out! :wink:

17 Likes

Woah, good job on this! I hope this is seen as much as your other projects. I’m going to very much use this in my own projects.

18 Likes

I LOVE the look of the bars. It really does make it seem like it’s a part of Roblox, which will help make the UI cleaner! I remember when this first was created and man, you’ve added so many things! Nice work!!

17 Likes

Woah! I will use it in my games!

18 Likes

Thank you very much for sharing this.
I would like to make a feature request, if I may.

The ability to Parent buttons and menus to other frames than just the TopBar.
Something like icon:setParent(someFrameOutsideTopbar)

This would make it possible to easily make other GUI like tabs and other kinds of menus outside of just the TopBar.

I’m thinking of things like perhaps an inventory with tabs to sort the items. You would open the inventory with the button on the TopBar but you would also create the tabs that filter the inventory. All in the same system.

17 Likes

This is certainly a consideration (and potentially a new project in itself) although for TopbarPlus we’ll likely remain within it’s original intention to provide game developers with easy-to-add and easy-to-customise topbar icons and software developers and runtime applications (like admin commands) with the ability to seamlessly integrate their own icons into others games.

18 Likes

Hey, I have a dropdown menu in-game and am trying to figure out how to add functions to the individual icons. I wanted to achieve allowing a player to morph themselves when they press an option using HD admin. Could you break it down for me?

7 Likes

You can achieve this with setDropdown combined with bindEvent demonstrated here:

If you’re attempting to morph someone via HD Admin I’d recommend waiting until Nanoblox is released which has a greatly more reliable API. For the time being you could morph people using HumanoidDescriptions

13 Likes

For HD Admin users: it’s now compatible with both v1 and v2 so you’ll no longer experience any issues if you previously attempted to use v2 in your game alongside it

13 Likes

Is there a way to make it work with ResetOnSpawn?

6 Likes

Sure can, simply utilise the new IconController.clearIconOnSpawn(icon) in v2.2.0 (or just re-add the topbarplus model).

e.g. after you’ve constructed all your icons do:

local icons = IconController.getIcons()
for _, icon in pairs(icons) do
	IconController.clearIconOnSpawn(icon)
end
13 Likes

I think I have explained myself wrong, what I want is that when the player reappears the Guis that are with the ResetOnSpawn option activated implemented in the topbarplus, the guis will appear again and that they can be opened from the top bar, as before this version when I put ResetOnSpawn the GUI became unusable.

What I mean by this is: When the player appears, the usable ResetOnSpawn guis reappear, not that it is deleted.

—If you have done what I wanted to tell you then it is a mistake for being a new option or I did something wrong—

9 Likes

This is what the ResetOnSpawn property is for. If you set it to true then your UI objects will be destroyed no matter what.

Assuming your topbaricons are constructed in a location that does persist (such as starterplayerscripts) and you want to bind them to GUIs that reset on spawn, then you could achieve this by listening for game.Players.PlayerAdded in the script that persists, then using icon:bindToggleItem and icon:unbindToggleItem when the desired GUIs are removed/added back in.

The above method is just over complicating things though - you’d honestly be better off fixing whatever problems you have with ResetOnSpawn and setting this property to false.

14 Likes

Well, thanks for your time, I’ll try to see if I can find a way to do what I have in mind.

By the way, I love this project that you are doing, I look forward to many more improvements and other amazing projects from you.:+1::star_struck:

10 Likes

I keep running into this problem when creating a second topbar button: image

No matter what the :setOrder is, they always stack ontop of eachother, my code is:


    local playerGui = player.PlayerGui

    local replicatedStorage = game:GetService("ReplicatedStorage")

    local iconModule = replicatedStorage.Icon

    local Icon = require(iconModule)

    local IconController = require(iconModule.IconController)

    local Themes = require(iconModule.Themes)

    local gui = playerGui:WaitForChild("gameUI")

    local lplayer = game.Players.LocalPlayer

    -- Apply BlueGradient Theme

    IconController.setGameTheme(Themes.BlueGradient)

    if lplayer.UserId == 817819194 then

    local panel = Icon.new()

    :setImage(6384095729, "deselected")

    :setImageYScale(0.7, "deselected")

    :setImage(6384109922, "selected")

    :setLabel("Close Panel", "selected")

    :bindToggleItem(gui.Panel)

    panel:setCaption("StudioOS Panel")

    :setOrder(1)

    panel:notify()

    panel:bindToggleKey(Enum.KeyCode.V)

    else

    print("Player not whitelisted.")

    gui.Panel:Destroy()

    end

    local suggest = Icon.new()

    :setImage(6384752804, "deselected")

    :setImageYScale(0.7, "deselected")

    :setImage(6384109922, "selected")

    :setLabel("Close", "selected")

    :bindToggleItem(gui.Suggest)

    suggest:setCaption("Suggest")

    suggest:bindToggleKey(Enum.KeyCode.C)

    :setOrder(2)
13 Likes