How to disable the default 1,2,3 keybinds for tools?

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

No longer provides this behavior, is there another way to disable it?

Bumping this, really need assistance on this.

Hello, I have a solution which i can provide in about an hour or so.

ContextActionService is likely going to be your friend here. I’m not certain if binding an action this way will overwrite the default behavior (i.e. 1, 2, 3, etc equipping backpack items) but I suspect it does.

If it doesn’t, and your goal is to make a custom backpack, I’d suggest abandoning traditional tool objects and instead use the CAS / UIS to setup said keys to mimic the function of equipping / unequipping a tool.

1 Like
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

I have typed this in a LocalScript under StarterPlayerScripts and it seems to be working fine for me. What exactly happens when you type this in, does the backpack UI still show or does it go away? If it goes away are you still able to equip a tool with 1, 2, and 3 keybinds?

As mentioned in the post, using the SetCore method seems to still allow me to use the number keys to equip tools to the player. I’m not really sure as to why this is the case, if I had access to core scripts then I could probably decipher it, but this isn’t the case.

This is a good point, I’ll look into this method. Thanks for the input. I’ll let you know if it ends up solving my problem.

1 Like