Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how do i make the top bar transparent?

recently, TopBarTransparency scripts have broken. and now i have to find some other way

so how would i do this?

2 answers

Here's a guide click here

To make a custom top bar like make it transparent. All you have to do is make a local script and paste the below code in staterplayerscripts

NOTE if you don't put it in starterplayerscripts then it wouldn't work

Code:

-- Custom topbar style
local TOPBAR_COLOR = Color3.fromRGB(0, 0, 127)
local TOPBAR_TRANSPARENCY = 0
 
local playerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
 
-- Hide the topbar
playerGui:SetTopbarTransparency(1)
 
-- Create a "Fake" replacement topbar with a ScreenGui and Frame
local screenGui = Instance.new("ScreenGui")
local frame = Instance.new("Frame")
 
-- Move (0, 0) to the actual top left corner of the screen, instead of under the topbar
screenGui.IgnoreGuiInset = true
-- The topbar is 36 pixels tall, and spans the entire width of the screen
frame.Size = UDim2.new(1, 0, 0, 36) 
-- Style the topbar
frame.BackgroundColor3 = TOPBAR_COLOR
frame.BackgroundTransparency = TOPBAR_TRANSPARENCY
frame.BorderSizePixel = 0
 
frame.Parent = screenGui
screenGui.Parent = playerGui

If my answer helped make sure to upvote and accept it.

Here's my method: Insert a LocalScript in StarterGui and type this

Local script in StarterGui

game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui'):SetTopbarTransparency(1)

This discussion is preserved as it was. New answers, comments, and votes are closed.