Making the Hotbar Invisible

Hello there Developers!

I was wondering how do i Make the Hotbars Invisible? like Arsenal, Phantom Forces
Im making my own FPS game (I was making a Farming Simulator but my friend who decided to help me said to wait for him)

By “Hotbars” do you mean the backpack (the list of Tools a Player can equip with the number buttons, typically shown on the bottom of the screen)? If that’s what you’re looking to disable, you can disable it, and many more default roblox UIs, with the StarterGui:SetCoreGuiEnabled() function. For your particular case, the line (in a local script) would look like this:

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

–This answer courtesy from a dev of Farming and Friends :wink:

1 Like

Hey @East98, I have tried the method you are recommending but it does not seem to be working for me. Maybe I am doing something wrong? I put a LocalScript into StarterPlayerScripts then put the regular line of code and it didn’t seem to work. I proceeded to try using PlayerAdded and CharacterAdded events and that did not seem to work either. Any ideas on why this may be happening?

The method I recommended should work. I tested this but just to confirm nothing strange is happening on your end test the following setup in a blank place file:

  • Add a few tools to the StarterPack (they can be any Tool, or even just a default Tool object)
  • Add a LocalScript in StarterPlayer.StarterPlayerScirpts with the following content:
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
  1. Test (play solo) with the LocalScript’s Disabled property set to false → you should not see the default backpack/tools hotbar
  2. Test (play solo) with the LocalScript’s Disbaled property set to true → you should see the default backpack/tools hotbar
1 Like

@East98 The issue happened to be on my end. One of my previous local scripts happened to already have a CoreGui bool value set to serve a different purpose. It seems it was interrupting with the disabling the given version by Roblox, Thank you for your help.

Yes the Hotbars when you have Tools