Hi how can i disable backpack of players?
i tried game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
but it didn’t work (it was a localscript inside startergui then i tried starterplayer and character and they also didn’t work.)
Hi how can i disable backpack of players?
i tried game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
but it didn’t work (it was a localscript inside startergui then i tried starterplayer and character and they also didn’t work.)
maybe game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
, since you would yield the script until the service is found
i tried that before but now you said i tried once again and yep still not working no difference at all
wait()
pcall(
function()
local DisableGUI = game:GetService(“StarterGui”)
DisableGUI:SetCore(“TopbarEnabled”, true)
DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, true)
DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Health, true)
DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)
end)
^^^
idk this works for me just put false for whatever u wanna disable and mess with it just some script i found off the tool box
AND PUT IT IN STARTERPLAYERSCRIPTS bc thats where i put it
The script you provided worked for me in StarterPlayer. An another script could be overriding your code.
it worked at first then broke itself but it fixed when i took it into a
while wait() do