Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Changing the size of the topbar?

Asked by 5 years ago

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

0
They may have set the transparency / removed the topbar and used a frame under it. User#5423 17 — 5y

2 answers

Log in to vote
0
Answered by
BenSBk 781 Moderation Voter
5 years ago

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
u can also set the CoreGui to false User#23365 30 — 5y
Ad
Log in to vote
0
Answered by
s_21 74
5 years ago

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 :)

Answer this question