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

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

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 comment

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.

3 answers

✓ Accepted answer

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

2 comments

0

It still looks nicer to disable it too.

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

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?

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.

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