How would I go about changing to core UI locally I only want it done for a certain player.
COMMUNITY QUESTION
how to change disable a core UI locally?
3 answers
I made a RemoteEvent inside of ReplicatedStorage called "DisableCoreGUI" and in a script inside of ServerScriptService I basically just did:
game.ReplicatedStorage.DisableCoreGUI:FireClient(game.Players:WaitForChild("Player1")) -- This fires a remote event so the client can receive it.
Inside a local script inside of StarterGui I put
game.ReplicatedStorage.DisableCoreGUI.OnClientEvent:Connect(function() -- When the client is fired in ReplicatedStorage
local startergui = game:GetService("StarterGui") -- Gets StarterGui
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false) -- Disables the CoreGui
end)
1 comment
0
That's a pretty neat use of RemoteEvents.
I am pretty sure you just do
--[[
Local Script
--]]
game.StarterGui:SetCoreGuiEnabled() -- Its like Enum.CoreGui.All or .Chat/.Backpack I think thats it
1 comment
0
He wants to hide the UI only for a player.
It works. When you add that LocalScript it is first teleported to the PlayerGui folder. So you can do it like this:
if condition then
script.Parent:SetCoreGuiEnabled(Enum.CoreGui.All, false)
end
Remember to change the condition and to put this code in a local script!
1 comment
0
SetCoreGuiEnabled doesn't work on PlayerGui
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
you can only change core gui in local scripts, so its local by nature. use StarterGui:SetCore() and StarterGui:SetCoreGuiEnabled()
Thats true. It's not that hard.
Pretty sure you can just use RemoteEvents or something