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