Hello, I tried making a custom topbar but with several tries from different videos and my own experience it never worked for some reason. This is the code
local TOPBAR_COLOR = Color3.fromRGB(53, 53, 53)
local TOPBAR_TRANSPARENCY = 0
local playerGui = game:GetService(“Player”).LocalPlayer:WaitForChild(“PlayerGui”)
playerGui:SetTopbarTransparency(1)
local screenGui = Instance.new(“ScreenGui”)
local frame = Instance.new(“Frame”)
How is it not working? Screenshot of your topbar, please!!
Note: game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui'):SetTopbarTransparency(1) in local script under “StarterPlayer.StarterPlayerScripts”. Should work.
The code does work. It’s localscript and I tested it out in StarterGui section. It creates a topbar black-gray as default is transparent gray. I hope this helps.
I know this post has already been resolved, but something to note: you should try reviewing your own code first before posting a thread. If you skim your code for a bit, you’ll realise that the “Player” service does not exist, it’s “Players”. This would’ve thrown an error in your console.
Always make sure that you apply basic debugging strategies and try searching for what you need before posting threads to this category, as often the issues you may find are due to your own oversights, lack of testing or unreviewed code.