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

[SetCoreEnabled] Not working. Is this a bug?

Asked by 9 years ago

This is an Example I pulled from the Wiki. Its not working!

local StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

1 answer

Log in to vote
1
Answered by
Thetacah 712 Moderation Voter
9 years ago

SetCoreGuiEnabled() needs to be done in a localscript.

Nope, it's not a bug.That code works perfectly fine, however it needs to be in a localscriptin StarterGui.(runs on the client instead of the server)

Have a good one.

local StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

Ad

Answer this question