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

How to turn off this part of the core GUI?

Asked by 5 years ago

Okay, so since I have started scripting, this one thing irritates me. It is this bar right here !problem. I don't know how to turn it off, any ideas of how to turn it off?

0
``local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)`` will disable it, and ``local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)`` will enable it IceAndNull 142 — 5y

3 answers

Log in to vote
0
Answered by
Ankur_007 290 Moderation Voter
5 years ago
Edited by User#24403 5 years ago

What you're aiming to do is "remove" the topbar, you can do this by making the topbar opaque in the following way:

PlayerGui:SetTopbarTransparency()

As explained on the wiki, you can use the PlayerGui:SetTopbarTransparency(float transparency) method to - self explanatory - set the topbar's transparency. The wiki explains the same:

SetTopbarTransparency sets the transparency of the Topbar CoreGui. A value of 0 is completely opaque, and a value of 1 is completely transparent

The script

```lua -- In a local script placed in StarterPlayerScripts local client = game:GetService("Players").LocalPlayer local playerGui = client.PlayerGui

local function toggleTransparency() local current = playerGui:GetTopbarTransparency() playerUI:SetTopbarTransparency(current >= 0.5 and 0.5 or 0) end

-- At whatever point you need to toggle the transparency toggleTransparency() ```


Please comment if you have any questions or I have made a mistake

Ad
Log in to vote
0
Answered by 5 years ago

Those parts of the game are part of a StarterGui:SetCore. You can read about it here (https://developer.roblox.com/api-reference/function/StarterGui/SetCore). For your problem. You would need to reference the starter gui and use :SetCore to access core scripts. In your case you would want to remove the top bar. In the first arguement, write a string with what type of CS you want tp edit ("TopbarEnabled"), then use the other arguements to edit which core script you are editing.

``` game.StarterGui:SetCore("TopbarEnabled",false) --boolean value

``

0
Also i am a nub of code blocks SoftlockedUnderZero 668 — 5y
Log in to vote
0
Answered by 4 years ago

I got it:

go onto your ScreenGUI and enable "IgnoreGuiInset".

Answer this question