Is the script placed in StarterCharacterScripts?
How do you change the button offsets in TPB? I mean the distance from the left or right, and the distance between icons. Anyone know how to do that?
edit: figured it out
Ok I just updated your updated TopBarPlus to make it change when you open the menu.
(I made the OG theme, @sqarv turned it into an updated module fixing a big issue, then I updated that to support the new right menu)
Quick question, can you update your module so it supports GetImageForKeycode when in Controller Mode?
I don’t even know what that is… sorry!
Its basically a function in UserInputService that returns a image corresponding to a button: UserInputService | Documentation - Roblox Creator Hub
This is one of Roblox’s recommended ways of getting dualshock/dualsense buttons
Oh epic! I’ll try that tomorrow, but I’ll need to find where it generates buttons.
Its in IconController and all lines with “rbxassetid://” are the important ones
Finally got a chance to add this, I’m gonna update Studio and start working on this. Thanks for the tip!
Edit: how do u test the button images i cant get button icons to show even before editing anything
Ok, I updated it, does it work now? (I literally cannot test it)
edit: i also added selection in the style of the left menu button
yeah it works now thanks
Hmph its been 29 days i think now but
for anyone (specifically you too) wondering how you can make deselected buttons on select its pretty easy
icon.selected:Connect(function()
-- code
icon:deselect()
end)
also, with this, you can do it like this:
drop:setDropdown({icon})
if you want this in a dropdown
Sorry for the late response,
Yes, it is.
Move it to StarterPlayerScripts and see if one or two is placed
The Script already was in StarterPlayerScripts, I’m sorry for reading your previous post incorrectly.
The issue fixed itself, thank you for trying to help, though.
Hey, there’s only one slight issue which is the TopBar being covered with chat when you don’t have voice chat enabled. When enabling voice chat it kinds fixes the issue and not overlap.
Is there a way I can enable a Bool Value on the Server-Side?
local BoxingGloves = accessoriesFolder:WaitForChild("BoxingGloves").Value
:bindEvent("selected", function()
if BoxingGloves == false then
print("BoxingGlove is false")
BoxingGloves = true
end
end)
You can do that by using RemoteEvents:
Create a separate Script in ServerScriptService, create a RemoteEvent in ReplicatedStorage then follow:
In the Script located in SeverScriptService write:
local Event = game:GetService("ReplicatedStorage").RemoteEvent
Event.OnServerEvent:Connect(function(Object, Value)
Object.Value == Value
end)
In the LocalScript write:
local Event = game:GetService("ReplicatedStorage").RemoteEvent
local BoxingGloves = accessoriesFolder:WaitForChild("BoxingGloves").Value
:bindEvent("selected", function()
if BoxingGloves == false then
print("BoxingGlove is false")
Event:FireServer(BoxingGloves, true)
end
end)
How would I make it so the icon only pops up on one specific team and then when you switch teams, it disappears?
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