I want to add custom buttons to the topbar, like the buttons on HD Admin on the top of the screen. Is it possible without using Topbar+. I tried using Topbar+ but it did not work and does not show up. If you still want me to use Topbar+, can anyone make a fix for it?
This is my code for the Topbar+ in StarterPlayerScripts
local frame = game.Players.LocalPlayer.PlayerGui.MAINGUIs
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local icon = Icon.new()
icon:setImage("rbxassetid://3926305904")
icon:notify()
icon.deselected:Connect(function()
frame.InfoFrame.Visible = false
end)
icon.selected:Connect(function()
frame.InfoFrame.Visible = true
end)
I tried to do everything. I looked at the API, tutorials (no one made any for Topbar+ and they are the old topbar with the hamburger icon.)
Edit: I did look at the playground but when I try to use the code in the playground, it still wont work sadly. I have the Icon script in ReplicatedStorage.