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

How do I hide the top bar in roblox studio when making an intro???

Asked by 4 years ago

I am trying to make an intro for my game, however, I am unable to hide the top bar with

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

Is this kind of thing even possible? Hiding the top bar so my GUI fills the entire window/screen? Thanks :)

1
You did it right, problem is, did it hide it, if not, check if the local script is in a place where they can run. User#32819 0 — 4y

3 answers

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

If you want to fill up the whole screen with your gui, maybe try using the ScreenGUI's IgnoreGuiInset Property. Enabling this will allow your gui to take up the whole screen, instead of you just trying to hide the top bar

More info: IgnoreGuiInset

0
It still looks nicer to disable it too. hisupermario9 10 — 4y
0
Ah well, i always use this method because for some reason, disabling it never does actually work for me. Maybe its because of the new design ROBLOX introduced JeffTheEpicRobloxian 258 — 4y
Ad
Log in to vote
2
Answered by 4 years ago
Edited 4 years ago

Try using

game:GetService("StarterGui"):SetCore("TopbarEnabled", false)

It worked for me. Not sure why yours didn't though.

EDIT: Yours has ' not ". That's your error. The code I gave you is more compact though.

EDIT EDIT: Maybe I'm dumb? Maybe it's the pcall? Why did you even need the pcall?

Log in to vote
0
Answered by 4 years ago

Hey, thanks for the replies! I actually found what the problem was. I needed to wait until my player stuff was loaded in!

local player = Players.LocalPlayer
local charName = player.Name
local char = workspace:WaitForChild(charName)

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

Basically, that is what I did.

Answer this question