How to efficiently hide CoreGUIs

  1. What do you want to achieve? Keep it simple and clear!
    Currently I’m using a Localscipt in ReplicatedFirst to hide all CoreGUIs upon joining. Is this method efficient or is there an easier and faster way at doing so?
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

I’d like to have it instantaneous so that the client would never see any CoreGUIs when in the game.

There literally isn’t. Roblox only provides so much methods, and these are coreGUIs you mean. The best you can do is use SetCoreGuiEnabled(), and you definitely can’t hide the menu button.

Is it efficient to use this code in ReplicatedFirst, or should I move it somewhere in StarterPlayer?

But there is/was a way to hide it…

2 Likes

Definitely in ReplicatedFirst, if you never want the player to see any UIs. That’s perfect.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.