How would I go about changing to core UI locally I only want it done for a certain player.
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)
I am pretty sure you just do
--[[ Local Script --]] game.StarterGui:SetCoreGuiEnabled() -- Its like Enum.CoreGui.All or .Chat/.Backpack I think thats it
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!
Closed as Not Constructive by Gey4Jesus69, lunatic5, joritochip, and alphawolvess
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?