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

Changing the size of the topbar?

Hi, I was playing a game recently when I found that the topbar's size was changed. The topbar only was visible where the escape, chat and backpack was while everything else was invisible. Is it possible change the size of the topbar?

I don't think it is possible. They probably just removed it and created a screen gui behind it

1 comment

0

They may have set the transparency / removed the topbar and used a frame under it.

2 answers

You can use PlayerGui:SetTopbarTransparency to set the transparency of the topbar to a number between 0 (opaque) and 1 (transparent). Then, you can create your own GUI that resembles the topbar and size it however you'd like. ScreenGui.IgnoreGuiInset should be true for this to work as expected.

local players = game:GetService("Players")
local local_player = players.LocalPlayer
local player_gui = local_player:WaitForChild("PlayerGui")

player_gui:SetTopbarTransparency(1)
-- Handle custom GUI.

1 comment

1

u can also set the CoreGui to false

Ye, You can't resize it, However, You can remove it by using this code

wait()
pcall(function()
	local starterGui = game:GetService('StarterGui')
	starterGui:SetCore("TopbarEnabled", false)
end)

Then you can just make a GUI :)

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