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

I am having that issue too, hopefully it gets fixed or I’m using lolman’s one

Edit: I have made a workaround for this

local tbp = player:WaitForChild("PlayerGui"):WaitForChild("TopbarPlus")

local container = tbp:WaitForChild("TopbarContainer")

local duplicateMusic = {}
local duplicateGoofy = {}
local duplicateSP = {}

for _, v in container:GetChildren() do
	if v.Name == "NextbotMusic" then
		table.insert(duplicateMusic, v)
	elseif v.Name == "GoofyMode" then
		table.insert(duplicateGoofy, v)
	elseif v.Name == "SpawnKill" then
		table.insert(duplicateSP, v)
	end
end

local music = container:FindFirstChild("NextbotMusic")
local goofy = container:FindFirstChild("GoofyMode")
local sp = container:FindFirstChild("SpawnKill")

for _, v in duplicateMusic do
	if v ~= music then
		v:Destroy()
	end
end

for _, v in duplicateGoofy do
	if v ~= goofy then
		v:Destroy()
	end
end

for _, v in duplicateSP do
	if v ~= sp then
		v:Destroy()
	end
end

Hi!

I was wondering if anyone knew how re-size dropdowns to make them bigger (on the Y axis)? It would really help me thank you.

Best Regards, PreaKrust

image

Don’t know what’s up with the notification but this is for the upcoming new experience controls, not the current one.

1 Like

Ah yes, was wondering why mine did not have those new fancy icons. How can we enable these new controls?

It’s a beta setting in Roblox Studio, it’s not live yet.

1 Like

Ah. Testing it with the new controls in studio here, getting this:
image

That shouldn’t be happening, I’ll go test it RQ. Also, have you tried hitting the site button? For vCommand specifically but not my test script it for some reason starts off with incorrect offsets until hitting that button.

EDIT: I have no issues while using this script:

Nevermind lol! Was using the other guys module…

Hopefully we can see the new controls release in-game soon.

2 Likes

i’m trying to make a button but it’s giving me this error
image
(new is not a valid member of ModuleScript "ReplicatedStorage.Icon")

here’s my entire script

task.wait(1) -- giving the ModuleScript time to load
local rs = game:GetService("ReplicatedStorage")
local Icon = rs.Icon -- i got the ModuleScript directly from the marketplace
local icon = Icon.new() -- **ERROR**: new is not a valid member of ModuleScript "ReplicatedStorage.Icon"
icon:setName("Icon1")

edit: im so stupid i need to require the module LOL.

Ben has took a long break and doesn’t do any updates of Nanoblox things since 2020-2021 (HD Admin, ZonePlus)

The LocalScript needs to be placed into StarterPlayerScripts, also for me everything works fine.

The only bug is with dropdowns, when you select two dropdowns, one of them doesn’t deselect, even if you have icon:autoDeselect(true) in the icon.
image

1 Like

Exactly, That’s how I set up my topbars

Hmm… Do you still have that bug?

I did a workaround to remove the bug, to destroy the clone

Thank you for all your amazing contributions towards the roblox community! :fire:

1 Like

Ben is taking an extended break from roblox, trying to find new opportunities outside of the roblox community. He has not given any information on if he will return or when. So it is safe to assume that there will be no updates to any of his products within the near future.

1 Like

I managed to figure out a rough-estimation fix for Icons appearing behind the chat Icon when using TextChatService.

I went into the “TopBarPlusGui” script and changed a few things.

local UIS = game:GetService("UserInputService");
local topbarContainer = Instance.new("Frame");

if UIS.TouchEnabled then
	topbarContainer.BackgroundTransparency = 1
	topbarContainer.Name = "TopbarContainer"
	topbarContainer.Position = UDim2.new(0.5, 0, 0.5, 0)
	topbarContainer.Size = UDim2.new(0.89, 0, 1, 0)
	topbarContainer.AnchorPoint = Vector2.new(0.5, 0.5)
	topbarContainer.Visible = true
	topbarContainer.ZIndex = 1
	topbarContainer.Parent = topbarPlusGui
	topbarContainer.Active = false
	else
	topbarContainer.BackgroundTransparency = 1
	topbarContainer.Name = "TopbarContainer"
	topbarContainer.Position = UDim2.new(0.5, 0, 0.5, 0)
	topbarContainer.Size = UDim2.new(0.93, 0, 1, 0)
	topbarContainer.AnchorPoint = Vector2.new(0.5, 0.5)
	topbarContainer.Visible = true
	topbarContainer.ZIndex = 1
	topbarContainer.Parent = topbarPlusGui
	topbarContainer.Active = false
end

These sizes should roughly move it over the right amount for mobile and PC (if your buttons are on the left side) - I’m sure it’s not 100% perfect but I also added AnchorPoints and sized it without using offset. No idea if it helps anyone but you’re looking to replace this code with the whole topbarContainer bit.

Very messy and easy fix, but if someones looking for a quick or temporary solution, here it is.

It scales differently on mobile and PC hence the UIS.TouchEnabled check.

1 Like

How do you add a new element type to TopBarPlus? I’m struggling to figure it out and most of the code looks like gibberish to me. I just need to figure out how to clone existing elements or make a basic starter element to work off of.

(I don’t really understand OOP in Luau, but I know its concepts because of JavaScript)