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

How can I add GUIs to the CoreGUI?

Hello dear scriptinghelpers community. I want to extend my game's topbar with a textlabel containing the current date and time. The date and time works but this script inside doesn't:

script.Parent.Parent = game.CoreGui.RobloxGui.TopBarContainer

This is what I get then:

09:40:03.679 - The current identity (2) cannot Class security check (lacking permission 1)

How can I Parent it correctly?

2 comments

0

you dont parent it to core gui, parent it to startergui instead

0

But when I parent it to the startergui it's not in the topbar. It's under it then.

2 answers

✓ Accepted answer

Well, it is not that easy. Because, if you want to add Gui's to the CoreGui, you must think about what you want to remove, and what you want to add. You can simply add a local script in the startergui, and add the following script (if you want to remove them)

(If you want the packpack to be removed): local startergui = game:GetService('StarterGui') startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

(If you want the chat to be removed): local startergui = game:GetService('StarterGui') startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

(If you want the playerlist to be removed): local startergui = game:GetService('StarterGui') startergui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)

(If you want the emotesmenu to be removes): local startergui = game:GetService('StarterGui') startergui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, false)

(If you want all the be removed): local startergui = game:GetService('StarterGui') startergui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

Then, after you have removed that, you can simply add a Gui up to where you want it to be. It is that easy.

If you have any questions, feel free to message me on Roblox with your question!

Sincerely, PengyyyDev Scripter Roblox

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